if (virDomainDeviceDefValidate(dev, def, flags, xmlopt) < 0)
return NULL;
- VIR_RETURN_PTR(dev);
+ return g_steal_pointer(&dev);
}
if (virDomainDefValidate(def, caps, flags, xmlopt) < 0)
return NULL;
- VIR_RETURN_PTR(def);
+ return g_steal_pointer(&def);
}
port->trustGuestRxFilters = iface->trustGuestRxFilters;
- VIR_RETURN_PTR(port);
+ return g_steal_pointer(&port);
}
int
port->class_id = actual->class_id;
port->trustGuestRxFilters = actual->trustGuestRxFilters;
- VIR_RETURN_PTR(port);
+ return g_steal_pointer(&port);
}
&& virSecretDefParseUsage(ctxt, def) < 0)
return NULL;
- VIR_RETURN_PTR(def);
+ return g_steal_pointer(&def);
}
static virSecretDefPtr
node) < 0)
return NULL;
- VIR_RETURN_PTR(def);
+ return g_steal_pointer(&def);
}
return NULL;
}
- VIR_RETURN_PTR(def);
+ return g_steal_pointer(&def);
}
if (xenFormatXLDomainChannels(conf, def) < 0)
return NULL;
- VIR_RETURN_PTR(conf);
+ return g_steal_pointer(&conf);
}
if (xenFormatXMInputDevs(conf, def) < 0)
return NULL;
- VIR_RETURN_PTR(conf);
+ return g_steal_pointer(&conf);
}
&data) < 0)
return NULL;
- VIR_RETURN_PTR(disks);
+ return g_steal_pointer(&disks);
}
qemuBlockNamedNodesArrayToHash, nodedata) < 0)
return NULL;
- VIR_RETURN_PTR(nodedata);
+ return g_steal_pointer(&nodedata);
}
if (VIR_STRDUP(uri->server, src->hosts->name) < 0)
return NULL;
- VIR_RETURN_PTR(uri);
+ return g_steal_pointer(&uri);
}
return NULL;
}
- VIR_RETURN_PTR(server);
+ return g_steal_pointer(&server);
}
server = NULL;
}
- VIR_RETURN_PTR(servers);
+ return g_steal_pointer(&servers);
}
server = NULL;
}
- VIR_RETURN_PTR(servers);
+ return g_steal_pointer(&servers);
}
virJSONValueObjectAdd(props, "u:debug", src->debugLevel, NULL) < 0)
return NULL;
- VIR_RETURN_PTR(props);
+ return g_steal_pointer(&props);
}
virJSONValueObjectAdd(ret, "b:rw", !src->readonly, NULL) < 0)
return NULL;
- VIR_RETURN_PTR(ret);
+ return g_steal_pointer(&ret);
}
}
}
- VIR_RETURN_PTR(fileprops);
+ return g_steal_pointer(&fileprops);
}
if (qemuBlockStorageSourceGetBlockdevGetCacheProps(src, props) < 0)
return NULL;
- VIR_RETURN_PTR(props);
+ return g_steal_pointer(&props);
}
virJSONValueObjectAdd(props, "s:driver", driver, NULL) < 0)
return NULL;
- VIR_RETURN_PTR(props);
+ return g_steal_pointer(&props);
}
}
}
- VIR_RETURN_PTR(props);
+ return g_steal_pointer(&props);
}
data->storageNodeName = src->nodestorage;
data->formatNodeName = src->nodeformat;
- VIR_RETURN_PTR(data);
+ return g_steal_pointer(&data);
}
return NULL;
}
- VIR_RETURN_PTR(data);
+ return g_steal_pointer(&data);
}
if (VIR_APPEND_ELEMENT(data->srcdata, data->nsrcdata, backend) < 0)
return NULL;
- VIR_RETURN_PTR(data);
+ return g_steal_pointer(&data);
}
job->newstate = -1;
job->type = type;
- VIR_RETURN_PTR(job);
+ return g_steal_pointer(&job);
}
if (qemuBlockJobRegister(job, vm, disk, true) < 0)
return NULL;
- VIR_RETURN_PTR(job);
+ return g_steal_pointer(&job);
}
if (qemuBlockJobRegister(job, vm, disk, true) < 0)
return NULL;
- VIR_RETURN_PTR(job);
+ return g_steal_pointer(&job);
}
if (qemuBlockJobRegister(job, vm, disk, true) < 0)
return NULL;
- VIR_RETURN_PTR(job);
+ return g_steal_pointer(&job);
}
if (qemuBlockJobRegister(job, vm, NULL, true) < 0)
return NULL;
- VIR_RETURN_PTR(job);
+ return g_steal_pointer(&job);
}
if (qemuBlockJobRegister(job, vm, disk, true) < 0)
return NULL;
- VIR_RETURN_PTR(job);
+ return g_steal_pointer(&job);
}
cfg->logTimestamp)
virCommandAddArgList(cmd, "-msg", "timestamp=on", NULL);
- VIR_RETURN_PTR(cmd);
+ return g_steal_pointer(&cmd);
}
virJSONValueObjectPrependString(ret, "driver", vcpupriv->type) < 0)
return NULL;
- VIR_RETURN_PTR(ret);
+ return g_steal_pointer(&ret);
}
if (VIR_APPEND_ELEMENT(data->srcdata, data->nsrcdata, elem) < 0)
return NULL;
- VIR_RETURN_PTR(data);
+ return g_steal_pointer(&data);
}
return NULL;
}
- VIR_RETURN_PTR(data);
+ return g_steal_pointer(&data);
}
qemuCaps) < 0)
return NULL;
- VIR_RETURN_PTR(data);
+ return g_steal_pointer(&data);
}
&cfg->nfirmwares) < 0)
return NULL;
- VIR_RETURN_PTR(cfg);
+ return g_steal_pointer(&cfg);
}
"DOI \"%s\"", model, doi);
}
- VIR_RETURN_PTR(caps);
+ return g_steal_pointer(&caps);
}
}
virObjectRef(domCaps);
- VIR_RETURN_PTR(domCaps);
+ return g_steal_pointer(&domCaps);
}
if (VIR_STRDUP(self->addr, addr) < 0)
return NULL;
- VIR_RETURN_PTR(self);
+ return g_steal_pointer(&self);
}
if (virDomainDiskBackingStoreParse(ctxt, src, xmlflags, xmlopt) < 0)
return NULL;
- VIR_RETURN_PTR(src);
+ return g_steal_pointer(&src);
}
return NULL;
}
- VIR_RETURN_PTR(slirp);
+ return g_steal_pointer(&slirp);
}
bstats->wr_highest_offset_valid = true;
}
- VIR_RETURN_PTR(bstats);
+ return g_steal_pointer(&bstats);
}
schema) < 0)
return NULL;
- VIR_RETURN_PTR(schema);
+ return g_steal_pointer(&schema);
}
slirp->pid = (pid_t)-1;
slirp->fd[0] = slirp->fd[1] = -1;
- VIR_RETURN_PTR(slirp);
+ return g_steal_pointer(&slirp);
}
qemuSlirpSetFeature(slirp, tmp);
}
- VIR_RETURN_PTR(slirp);
+ return g_steal_pointer(&slirp);
}
umask(old_umask);
}
- VIR_RETURN_PTR(hostdevMgr);
+ return g_steal_pointer(&hostdevMgr);
}
virHostdevManagerPtr
pci = NULL;
}
- VIR_RETURN_PTR(pcidevs);
+ return g_steal_pointer(&pcidevs);
}
static int
VIR_DEBUG("%s %s: initialized", dev->id, dev->name);
- VIR_RETURN_PTR(dev);
+ return g_steal_pointer(&dev);
}
nret++;
}
- VIR_RETURN_PTR(ret);
+ return g_steal_pointer(&ret);
}