void
-virBlkioDeviceWeightArrayClear(virBlkioDeviceWeightPtr deviceWeights,
- int ndevices)
+virBlkioDeviceArrayClear(virBlkioDeviceWeightPtr deviceWeights,
+ int ndevices)
{
size_t i;
VIR_FREE(def->description);
VIR_FREE(def->title);
- virBlkioDeviceWeightArrayClear(def->blkio.devices,
- def->blkio.ndevices);
+ virBlkioDeviceArrayClear(def->blkio.devices,
+ def->blkio.ndevices);
VIR_FREE(def->blkio.devices);
virDomainWatchdogDefFree(def->watchdog);
};
-void virBlkioDeviceWeightArrayClear(virBlkioDeviceWeightPtr deviceWeights,
- int ndevices);
+void virBlkioDeviceArrayClear(virBlkioDeviceWeightPtr deviceWeights,
+ int ndevices);
typedef struct _virDomainResourceDef virDomainResourceDef;
typedef virDomainResourceDef *virDomainResourceDefPtr;
# conf/domain_conf.h
-virBlkioDeviceWeightArrayClear;
+virBlkioDeviceArrayClear;
virDiskNameToBusDeviceIndex;
virDiskNameToIndex;
virDomainActualNetDefFree;
virReportError(VIR_ERR_INVALID_ARG,
_("unable to parse device weight '%s'"), deviceWeightStr);
cleanup:
- virBlkioDeviceWeightArrayClear(result, ndevices);
+ virBlkioDeviceArrayClear(result, ndevices);
VIR_FREE(result);
return -1;
}
&vm->def->blkio.ndevices,
devices, ndevices) < 0)
ret = -1;
- virBlkioDeviceWeightArrayClear(devices, ndevices);
+ virBlkioDeviceArrayClear(devices, ndevices);
VIR_FREE(devices);
}
}
&persistentDef->blkio.ndevices,
devices, ndevices) < 0)
ret = -1;
- virBlkioDeviceWeightArrayClear(devices, ndevices);
+ virBlkioDeviceArrayClear(devices, ndevices);
VIR_FREE(devices);
}
}