virDomainDiskSetSource(virDomainDiskDefPtr def, const char *src)
{
    char *tmp = g_strdup(src);
    g_free(def->src->path);
    def->src->path = tmp;
    return 0;
}
virDomainDiskSetSource(virDomainDiskDefPtr def, const char *src)
{
    char *tmp = g_strdup(src);
    g_free(def->src->path);
    def->src->path = tmp;
    return 0;
}