void *opaque,
char ***features)
{
- VIR_AUTOSTRINGLIST list = NULL;
+ g_auto(GStrv) list = NULL;
size_t n = 0;
size_t i;
virDomainDiskAddISCSIPoolSourceHost(virStorageSourcePtr src,
virStoragePoolDefPtr pooldef)
{
- VIR_AUTOSTRINGLIST tokens = NULL;
+ g_auto(GStrv) tokens = NULL;
size_t ntokens;
/* Only support one host */
{
unsigned long cpuid;
unsigned long hwcaps;
- VIR_AUTOSTRINGLIST features = NULL;
+ g_auto(GStrv) features = NULL;
int cpu_feature_index = 0;
size_t i;
xenParsePCI(char *entry)
{
virDomainHostdevDefPtr hostdev = NULL;
- VIR_AUTOSTRINGLIST tokens = NULL;
- VIR_AUTOSTRINGLIST options = NULL;
+ g_auto(GStrv) tokens = NULL;
+ g_auto(GStrv) options = NULL;
size_t ntokens = 0;
size_t nexttoken = 0;
char *str;
static int
xenParsePCIList(virConfPtr conf, virDomainDefPtr def)
{
- VIR_AUTOSTRINGLIST pcis = NULL;
+ g_auto(GStrv) pcis = NULL;
char **entries = NULL;
int rc;
}
if (!hvm && def->graphics == NULL) { /* New PV guests use this format */
- VIR_AUTOSTRINGLIST vfbs = NULL;
+ g_auto(GStrv) vfbs = NULL;
int rc;
if ((rc = virConfGetValueStringList(conf, "vfb", false, &vfbs)) == 1) {
static int
xenParseCharDev(virConfPtr conf, virDomainDefPtr def, const char *nativeFormat)
{
- VIR_AUTOSTRINGLIST serials = NULL;
+ g_auto(GStrv) serials = NULL;
virDomainChrDefPtr chr = NULL;
if (def->os.type == VIR_DOMAIN_OSTYPE_HVM) {
xenParseXLNamespaceData(virConfPtr conf, virDomainDefPtr def)
{
virConfValuePtr list = virConfGetValue(conf, "device_model_args");
- VIR_AUTOSTRINGLIST args = NULL;
+ g_auto(GStrv) args = NULL;
size_t nargs;
libxlDomainXmlNsDefPtr nsdata = NULL;
size_t i;
g_autofree char *logfile = NULL;
int logfd = -1;
- VIR_AUTOSTRINGLIST veths = NULL;
+ g_auto(GStrv) veths = NULL;
int handshakefds[2] = { -1, -1 };
off_t pos = -1;
char ebuf[1024];
for (i = 0; i < G_N_ELEMENTS(virQEMUCapsObjectProps); i++) {
virQEMUCapsObjectTypeProps *props = virQEMUCapsObjectProps + i;
- VIR_AUTOSTRINGLIST values = NULL;
+ g_auto(GStrv) values = NULL;
int nvalues;
if (props->capsCondition >= 0 &&
/* QEMU 2.11 for Power renamed all CPU models to lower case, we need to
* translate them back to libvirt's upper case model names. */
if (ARCH_IS_PPC64(arch)) {
- VIR_AUTOSTRINGLIST libvirtModels = NULL;
+ g_auto(GStrv) libvirtModels = NULL;
char **name;
if (virCPUGetModels(arch, &libvirtModels) < 0)
VIR_CPU_MODE_CUSTOM,
domCaps->machine)) {
const char *forbidden[] = { "host", NULL };
- VIR_AUTOSTRINGLIST models = NULL;
+ g_auto(GStrv) models = NULL;
if (virCPUGetModels(domCaps->arch, &models) >= 0) {
domCaps->cpu.custom = virQEMUCapsGetCPUModels(qemuCaps,
{
qemuDomainObjPrivatePtr priv = vm->privateData;
int perms = VIR_CGROUP_DEVICE_READ;
- VIR_AUTOSTRINGLIST targetPaths = NULL;
+ g_auto(GStrv) targetPaths = NULL;
size_t i;
int rv;
virQEMUDriverConfigLoadProcessEntry(virQEMUDriverConfigPtr cfg,
virConfPtr conf)
{
- VIR_AUTOSTRINGLIST hugetlbfs = NULL;
+ g_auto(GStrv) hugetlbfs = NULL;
g_autofree char *stdioHandler = NULL;
g_autofree char *corestr = NULL;
size_t i;
virConfPtr conf,
bool privileged)
{
- VIR_AUTOSTRINGLIST nvram = NULL;
+ g_auto(GStrv) nvram = NULL;
size_t i;
if (virConfGetValueStringList(conf, "nvram", false, &nvram) < 0)
return -1;
if (nvram) {
- VIR_AUTOSTRINGLIST fwList = NULL;
+ g_auto(GStrv) fwList = NULL;
virFirmwareFreeList(cfg->firmwares, cfg->nfirmwares);
cfg->firmwares = NULL;
virConfPtr conf,
bool privileged)
{
- VIR_AUTOSTRINGLIST controllers = NULL;
- VIR_AUTOSTRINGLIST namespaces = NULL;
+ g_auto(GStrv) controllers = NULL;
+ g_auto(GStrv) namespaces = NULL;
g_autofree char *user = NULL;
g_autofree char *group = NULL;
size_t i, j;
qemuFirmwarePtr **firmwaresRet,
char ***pathsRet)
{
- VIR_AUTOSTRINGLIST paths = NULL;
+ g_auto(GStrv) paths = NULL;
size_t npaths;
qemuFirmwarePtr *firmwares = NULL;
size_t i;
virDomainDefPtr def,
unsigned int flags)
{
- VIR_AUTOSTRINGLIST paths = NULL;
+ g_auto(GStrv) paths = NULL;
qemuFirmwarePtr *firmwares = NULL;
ssize_t nfirmwares = 0;
const qemuFirmware *theone = NULL;
virCPUDataPtr data)
{
qemuMonitorJSONObjectProperty prop = { .type = QEMU_MONITOR_OBJECT_PROPERTY_BOOLEAN };
- VIR_AUTOSTRINGLIST props = NULL;
+ g_auto(GStrv) props = NULL;
char **p;
if (qemuMonitorJSONGetCPUProperties(mon, &props) < 0)
void *opaque,
virCPUDataPtr data)
{
- VIR_AUTOSTRINGLIST props = NULL;
+ g_auto(GStrv) props = NULL;
char **p;
if (qemuMonitorJSONGetStringListProperty(mon, QOM_CPU_PATH,
if (!(tmpPath = virPCIDeviceAddressGetIOMMUGroupDev(&next->nvme->pciAddr)))
return -1;
} else {
- VIR_AUTOSTRINGLIST targetPaths = NULL;
+ g_auto(GStrv) targetPaths = NULL;
if (virStorageSourceIsEmpty(next) ||
!virStorageSourceIsLocalStorage(next)) {
qemuDomainBuildNamespace(virQEMUDriverConfigPtr cfg,
virDomainObjPtr vm)
{
- VIR_AUTOSTRINGLIST paths = NULL;
+ g_auto(GStrv) paths = NULL;
if (!qemuDomainNamespaceEnabled(vm, QEMU_DOMAIN_NS_MOUNT)) {
VIR_DEBUG("namespaces disabled for domain %s", vm->def->name);
qemuDomainObjPrivatePtr priv = vm->privateData;
virQEMUDriverPtr driver = priv->driver;
g_autoptr(virQEMUDriverConfig) cfg = NULL;
- VIR_AUTOSTRINGLIST unlinkPaths = NULL;
+ g_auto(GStrv) unlinkPaths = NULL;
char **devMountsPath = NULL;
size_t ndevMountsPath = 0;
size_t npaths;
qemuDomainNamespaceSetupDisk(virDomainObjPtr vm,
virStorageSourcePtr src)
{
- VIR_AUTOSTRINGLIST paths = NULL;
+ g_auto(GStrv) paths = NULL;
if (!qemuDomainNamespaceEnabled(vm, QEMU_DOMAIN_NS_MOUNT))
return 0;
qemuDomainNamespaceSetupHostdev(virDomainObjPtr vm,
virDomainHostdevDefPtr hostdev)
{
- VIR_AUTOSTRINGLIST paths = NULL;
+ g_auto(GStrv) paths = NULL;
if (!qemuDomainNamespaceEnabled(vm, QEMU_DOMAIN_NS_MOUNT))
return 0;
qemuDomainNamespaceTeardownHostdev(virDomainObjPtr vm,
virDomainHostdevDefPtr hostdev)
{
- VIR_AUTOSTRINGLIST paths = NULL;
+ g_auto(GStrv) paths = NULL;
if (!qemuDomainNamespaceEnabled(vm, QEMU_DOMAIN_NS_MOUNT))
return 0;
qemuDomainNamespaceSetupMemory(virDomainObjPtr vm,
virDomainMemoryDefPtr mem)
{
- VIR_AUTOSTRINGLIST paths = NULL;
+ g_auto(GStrv) paths = NULL;
if (!qemuDomainNamespaceEnabled(vm, QEMU_DOMAIN_NS_MOUNT))
return 0;
qemuDomainNamespaceTeardownMemory(virDomainObjPtr vm,
virDomainMemoryDefPtr mem)
{
- VIR_AUTOSTRINGLIST paths = NULL;
+ g_auto(GStrv) paths = NULL;
if (!qemuDomainNamespaceEnabled(vm, QEMU_DOMAIN_NS_MOUNT))
return 0;
qemuDomainNamespaceSetupChardev(virDomainObjPtr vm,
virDomainChrDefPtr chr)
{
- VIR_AUTOSTRINGLIST paths = NULL;
+ g_auto(GStrv) paths = NULL;
if (!qemuDomainNamespaceEnabled(vm, QEMU_DOMAIN_NS_MOUNT))
return 0;
qemuDomainNamespaceTeardownChardev(virDomainObjPtr vm,
virDomainChrDefPtr chr)
{
- VIR_AUTOSTRINGLIST paths = NULL;
+ g_auto(GStrv) paths = NULL;
if (!qemuDomainNamespaceEnabled(vm, QEMU_DOMAIN_NS_MOUNT))
return 0;
qemuDomainNamespaceSetupRNG(virDomainObjPtr vm,
virDomainRNGDefPtr rng)
{
- VIR_AUTOSTRINGLIST paths = NULL;
+ g_auto(GStrv) paths = NULL;
if (!qemuDomainNamespaceEnabled(vm, QEMU_DOMAIN_NS_MOUNT))
return 0;
qemuDomainNamespaceTeardownRNG(virDomainObjPtr vm,
virDomainRNGDefPtr rng)
{
- VIR_AUTOSTRINGLIST paths = NULL;
+ g_auto(GStrv) paths = NULL;
if (!qemuDomainNamespaceEnabled(vm, QEMU_DOMAIN_NS_MOUNT))
return 0;
qemuDomainNamespaceSetupInput(virDomainObjPtr vm,
virDomainInputDefPtr input)
{
- VIR_AUTOSTRINGLIST paths = NULL;
+ g_auto(GStrv) paths = NULL;
if (!qemuDomainNamespaceEnabled(vm, QEMU_DOMAIN_NS_MOUNT))
return 0;
qemuDomainNamespaceTeardownInput(virDomainObjPtr vm,
virDomainInputDefPtr input)
{
- VIR_AUTOSTRINGLIST paths = NULL;
+ g_auto(GStrv) paths = NULL;
if (!qemuDomainNamespaceEnabled(vm, QEMU_DOMAIN_NS_MOUNT))
return 0;
if (ARCH_IS_X86(vm->def->os.arch) &&
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_CPU_UNAVAILABLE_FEATURES)) {
- VIR_AUTOSTRINGLIST features = NULL;
+ g_auto(GStrv) features = NULL;
int n;
if ((n = virCPUDefCheckFeatures(vm->def->cpu,
return -1;
if (ARCH_IS_X86(def->os.arch)) {
- VIR_AUTOSTRINGLIST features = NULL;
+ g_auto(GStrv) features = NULL;
if (virQEMUCapsGetCPUFeatures(qemuCaps, def->virtType, false, &features) < 0)
return -1;
GHashTable *schema,
virJSONValuePtr *entry)
{
- VIR_AUTOSTRINGLIST elems = NULL;
+ g_auto(GStrv) elems = NULL;
struct virQEMUQAPISchemaTraverseContext ctxt;
const char *cmdname;
int rc;
qemuVhostUserPtr **vhostuserRet,
char ***pathsRet)
{
- VIR_AUTOSTRINGLIST paths = NULL;
+ g_auto(GStrv) paths = NULL;
size_t npaths;
qemuVhostUserPtr *vus = NULL;
size_t i;
int ret = -1;
int portN;
- VIR_AUTOSTRINGLIST authMethodList = NULL;
+ g_auto(GStrv) authMethodList = NULL;
char **authMethodNext;
/* port number will be verified while opening the socket */
int ret = -1;
int portN;
- VIR_AUTOSTRINGLIST authMethodList = NULL;
+ g_auto(GStrv) authMethodList = NULL;
char **authMethodNext;
/* port number will be verified while opening the socket */
{
size_t i;
g_autofree char *output = NULL;
- VIR_AUTOSTRINGLIST lines = NULL;
- VIR_AUTOSTRINGLIST cells = NULL;
+ g_auto(GStrv) lines = NULL;
+ g_auto(GStrv) cells = NULL;
g_autoptr(virCommand) cmd = NULL;
cmd = virCommandNewArgList(SHEEPDOGCLI, "vdi", "list", "-r", NULL);
bool is_new_vol = false;
virStorageVolDefPtr volume = NULL;
virStoragePoolDefPtr def = virStoragePoolObjGetDef(pool);
- VIR_AUTOSTRINGLIST tokens = NULL;
- VIR_AUTOSTRINGLIST name_tokens = NULL;
+ g_auto(GStrv) tokens = NULL;
+ g_auto(GStrv) name_tokens = NULL;
if (!(tokens = virStringSplitCount(volume_string, "\t", 0, &count)))
return -1;
{
virStoragePoolDefPtr def = virStoragePoolObjGetDef(pool);
size_t i;
- VIR_AUTOSTRINGLIST lines = NULL;
+ g_auto(GStrv) lines = NULL;
g_autoptr(virCommand) cmd = NULL;
g_autofree char *volumes_list = NULL;
char *zpool_props = NULL;
size_t i;
g_autoptr(virCommand) cmd = NULL;
- VIR_AUTOSTRINGLIST lines = NULL;
- VIR_AUTOSTRINGLIST tokens = NULL;
- VIR_AUTOSTRINGLIST name_tokens = NULL;
+ g_auto(GStrv) lines = NULL;
+ g_auto(GStrv) tokens = NULL;
+ g_auto(GStrv) name_tokens = NULL;
/**
* $ zpool get -Hp health,size,free,allocated test
virCgroupPtr *group)
{
g_autoptr(virCgroup) parent = NULL;
- VIR_AUTOSTRINGLIST tokens = virStringSplit(path, "/", 0);
+ g_auto(GStrv) tokens = virStringSplit(path, "/", 0);
size_t i;
if (virCgroupNew("/", controllers, &parent) < 0)
int totgroups = 0, ngroup = 0;
char **groups;
g_autofree char *outbuf = NULL;
- VIR_AUTOSTRINGLIST lines = NULL;
+ g_auto(GStrv) lines = NULL;
int ret = -1;
/* Compile all regular expressions */
virDevMapperGetMajor(unsigned int *major)
{
g_autofree char *buf = NULL;
- VIR_AUTOSTRINGLIST lines = NULL;
+ g_auto(GStrv) lines = NULL;
size_t i;
if (!virFileExists(CONTROL_PATH))
g_autofree char *buf = NULL;
struct dm_ioctl dm;
struct dm_target_deps *deps = NULL;
- VIR_AUTOSTRINGLIST devPaths = NULL;
+ g_auto(GStrv) devPaths = NULL;
size_t i;
memset(&dm, 0, sizeof(dm));
}
for (i = 0; i < deps->count; i++) {
- VIR_AUTOSTRINGLIST tmpPaths = NULL;
+ g_auto(GStrv) tmpPaths = NULL;
if (virDevMapperGetTargetsImpl(controlFD, devPaths[i], &tmpPaths, ttl - 1) < 0)
return -1;
virFindFileInPath(const char *file)
{
const char *origpath = NULL;
- VIR_AUTOSTRINGLIST paths = NULL;
+ g_auto(GStrv) paths = NULL;
char **pathiter;
if (file == NULL)
{
g_autofree char *output = NULL;
g_autofree char *str = virFirewallRuleToString(rule);
- VIR_AUTOSTRINGLIST lines = NULL;
+ g_auto(GStrv) lines = NULL;
VIR_INFO("Applying rule '%s'", NULLSTR(str));
if (rule->ignoreErrors)
struct dirent *entry;
g_autofree char *path = NULL;
g_autofree char *dir_path = NULL;
- VIR_AUTOSTRINGLIST entries = NULL;
+ g_auto(GStrv) entries = NULL;
const char *drvstr;
const char *opstr;
const char *subopstr;
virJSONValuePtr retobj = opaque;
g_autoptr(virJSONValue) newval = NULL;
virJSONValuePtr existobj;
- VIR_AUTOSTRINGLIST tokens = NULL;
+ g_auto(GStrv) tokens = NULL;
size_t ntokens = 0;
/* non-nested keys only need to be copied */
int len;
g_autofree char *filename = NULL;
g_autofree char *buf = NULL;
- VIR_AUTOSTRINGLIST tokens = NULL;
+ g_auto(GStrv) tokens = NULL;
filename = g_strdup_printf("/proc/%llu/stat", (long long)pid);
size_t nstrings;
unsigned int idx = 0;
char *suffix;
- VIR_AUTOSTRINGLIST strings = NULL;
+ g_auto(GStrv) strings = NULL;
*chainIndex = 0;
{
g_autoptr(virURI) uri = NULL;
const char *path = NULL;
- VIR_AUTOSTRINGLIST scheme = NULL;
+ g_auto(GStrv) scheme = NULL;
if (!(uri = virURIParse(uristr))) {
virReportError(VIR_ERR_INTERNAL_ERROR,
{
char *port;
size_t skip;
- VIR_AUTOSTRINGLIST parts = NULL;
+ g_auto(GStrv) parts = NULL;
if (VIR_EXPAND_N(src->hosts, src->nhosts, 1) < 0)
return -1;
const char *jsonstr)
{
const char *cookiestr;
- VIR_AUTOSTRINGLIST cookies = NULL;
+ g_auto(GStrv) cookies = NULL;
size_t ncookies = 0;
size_t i;
virStorageFileCheckCompat(const char *compat)
{
unsigned int result;
- VIR_AUTOSTRINGLIST version = NULL;
+ g_auto(GStrv) version = NULL;
if (!compat)
return 0;
int nfds,
const char *fdnames)
{
- VIR_AUTOSTRINGLIST fdnamelistptr = NULL;
+ g_auto(GStrv) fdnamelistptr = NULL;
char **fdnamelist;
size_t nfdnames;
size_t i;
}
if (sched_cpu_affinity != NULL && STRCASENEQ(sched_cpu_affinity, "all")) {
- VIR_AUTOSTRINGLIST afflist = NULL;
+ g_auto(GStrv) afflist = NULL;
char **aff;
size_t naffs;
testFWPrecedence(const void *opaque G_GNUC_UNUSED)
{
g_autofree char *fakehome = NULL;
- VIR_AUTOSTRINGLIST fwList = NULL;
+ g_auto(GStrv) fwList = NULL;
size_t nfwList;
size_t i;
const char *expected[] = {
{
const struct testData *data = opaque;
g_autoptr(virDomainObj) vm = NULL;
- VIR_AUTOSTRINGLIST notRestored = NULL;
+ g_auto(GStrv) notRestored = NULL;
size_t i;
int ret = -1;
testVUPrecedence(const void *opaque G_GNUC_UNUSED)
{
g_autofree char *fakehome = NULL;
- VIR_AUTOSTRINGLIST vuList = NULL;
+ g_auto(GStrv) vuList = NULL;
size_t nvuList;
size_t i;
const char *expected[] = {
fakeStorageVolLookupByName(virStoragePoolPtr pool,
const char *name)
{
- VIR_AUTOSTRINGLIST volinfo = NULL;
+ g_auto(GStrv) volinfo = NULL;
virStorageVolPtr ret = NULL;
if (STREQ(pool->name, "inactive")) {
struct testQemuInfo *info,
unsigned int flags)
{
- VIR_AUTOSTRINGLIST args = NULL;
+ g_auto(GStrv) args = NULL;
g_autoptr(virDomainObj) vm = NULL;
size_t nargs = 0;
size_t i;
} else if (STREQ(bus_name, VIR_FIREWALL_FIREWALLD_SERVICE) &&
STREQ(method_name, "passthrough")) {
g_autoptr(GVariantIter) iter = NULL;
- VIR_AUTOSTRINGLIST args = NULL;
+ g_auto(GStrv) args = NULL;
size_t nargs = 0;
char *type = NULL;
char *item = NULL;
int ndomains = 0;
size_t i = 0;
char **ret = NULL;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(VIR_CONNECT_LIST_DOMAINS_ACTIVE |
VIR_CONNECT_LIST_DOMAINS_INACTIVE |
int ndomains = 0;
size_t i = 0;
char **ret = NULL;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(VIR_CONNECT_LIST_DOMAINS_ACTIVE |
VIR_CONNECT_LIST_DOMAINS_INACTIVE |
g_autofree xmlNodePtr *interfaces = NULL;
size_t i;
unsigned int domainXMLFlags = 0;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(VIRSH_DOMAIN_INTERFACE_COMPLETER_MAC, NULL);
g_autofree xmlNodePtr *disks = NULL;
int ndisks;
size_t i;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
unsigned int flags)
{
size_t i = 0;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
g_autofree xmlNodePtr *interfaces = NULL;
g_autofree char *xpath = NULL;
g_autofree char *state = NULL;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
g_autofree xmlNodePtr *aliases = NULL;
size_t i;
unsigned int domainXMLFlags = 0;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
unsigned int flags)
{
size_t i = 0;
- VIR_AUTOSTRINGLIST events = NULL;
+ g_auto(GStrv) events = NULL;
const char *event = NULL;
virCheckFlags(0, NULL);
unsigned int flags)
{
size_t i = 0;
- VIR_AUTOSTRINGLIST events = NULL;
+ g_auto(GStrv) events = NULL;
const char *event = NULL;
virCheckFlags(0, NULL);
size_t i;
int rc;
char **ret = NULL;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
int nvcpus = 0;
unsigned int id;
char **ret = NULL;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
xmlXPathContextPtr ctxt = NULL;
int nvcpus = 0;
unsigned int id;
- VIR_AUTOSTRINGLIST vcpulist = NULL;
+ g_auto(GStrv) vcpulist = NULL;
const char *vcpuid = NULL;
char **ret = NULL;
int cpunum;
g_autofree unsigned char *cpumap = NULL;
unsigned int online;
- VIR_AUTOSTRINGLIST cpulist = NULL;
+ g_auto(GStrv) cpulist = NULL;
const char *cpuid = NULL;
virCheckFlags(0, NULL);
unsigned int nparams = 0;
size_t i;
int nvcpus;
- VIR_AUTOSTRINGLIST cpulist = NULL;
+ g_auto(GStrv) cpulist = NULL;
const char *vcpuid = NULL;
char **ret = NULL;
g_autofree xmlNodePtr *parallels = NULL;
size_t i;
size_t offset = 0;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
const vshCmd *cmd G_GNUC_UNUSED,
unsigned int flags)
{
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
size_t i = 0;
virCheckFlags(0, NULL);
const vshCmd *cmd G_GNUC_UNUSED,
unsigned int flags)
{
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
size_t i = 0;
virCheckFlags(0, NULL);
const vshCmd *cmd G_GNUC_UNUSED,
unsigned int flags)
{
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
size_t i = 0;
virCheckFlags(0, NULL);
bool cellno = vshCommandOptBool(cmd, "cellno");
g_autofree char *path = NULL;
g_autofree char *cap_xml = NULL;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
g_autoptr(xmlDoc) doc = NULL;
size_t i = 0;
g_autofree char *cap_xml = NULL;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
unsigned int flags)
{
virshControlPtr priv = ctl->privData;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
size_t i;
int cpunum;
size_t offset = 0;
virInterfacePtr *ifaces = NULL;
int nifaces = 0;
size_t i = 0;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(VIR_CONNECT_LIST_INTERFACES_ACTIVE |
VIR_CONNECT_LIST_INTERFACES_INACTIVE,
int nnets = 0;
size_t i = 0;
char **ret = NULL;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(VIR_CONNECT_LIST_NETWORKS_INACTIVE |
VIR_CONNECT_LIST_NETWORKS_ACTIVE |
unsigned int flags)
{
size_t i = 0;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
int nnets = 0;
size_t i = 0;
char **ret = NULL;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
int nleases;
size_t i = 0;
char **ret = NULL;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
int ndevs = 0;
size_t i = 0;
char **ret = NULL;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
unsigned int flags)
{
size_t i = 0;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
const vshCmd *cmd,
unsigned int flags)
{
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
const char *cap_str = NULL;
size_t i = 0;
int nnwfilters = 0;
size_t i = 0;
char **ret = NULL;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
int nbindings = 0;
size_t i = 0;
char **ret = NULL;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
int npools = 0;
size_t i = 0;
char **ret = NULL;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(VIR_CONNECT_LIST_STORAGE_POOLS_INACTIVE |
VIR_CONNECT_LIST_STORAGE_POOLS_ACTIVE |
unsigned int flags)
{
size_t i = 0;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
const vshCmd *cmd,
unsigned int flags)
{
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
const char *type_str = NULL;
size_t i = 0;
int nsecrets = 0;
size_t i = 0;
char **ret = NULL;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
unsigned int flags)
{
size_t i;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
int nsnapshots = 0;
size_t i = 0;
char **ret = NULL;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
int nvols = 0;
size_t i = 0;
char **ret = NULL;
- VIR_AUTOSTRINGLIST tmp = NULL;
+ g_auto(GStrv) tmp = NULL;
virCheckFlags(0, NULL);
{
const size_t optionsLen = virStringListLength(options);
g_autofree char *inputCopy = NULL;
- VIR_AUTOSTRINGLIST inputList = NULL;
- VIR_AUTOSTRINGLIST ret = NULL;
+ g_auto(GStrv) inputList = NULL;
+ g_auto(GStrv) ret = NULL;
size_t nret = 0;
size_t i;
{
virDomainPtr dom = NULL;
const char *user;
- VIR_AUTOSTRINGLIST keys = NULL;
+ g_auto(GStrv) keys = NULL;
int nkeys = 0;
size_t i;
const unsigned int flags = 0;
const char *user;
const char *from;
g_autofree char *buffer = NULL;
- VIR_AUTOSTRINGLIST keys = NULL;
+ g_auto(GStrv) keys = NULL;
int nkeys = 0;
unsigned int flags = 0;
bool ret = false;