virDomainHostdevSubsysSCSIiSCSIPtr iscsisrc = &def->u.iscsi;
g_autoptr(virStorageAuthDef) authdef = NULL;
xmlNodePtr node;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
ctxt->node = sourcenode;
xmlXPathContextPtr ctxt)
{
virNetDevCoalescePtr ret = NULL;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
unsigned long long tmp = 0;
g_autofree char *str = NULL;
virDomainXMLOptionPtr xmlopt,
unsigned int flags)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
size_t i = 0, j;
int n;
g_autofree xmlNodePtr *list = NULL;
xmlXPathContextPtr ctxt,
unsigned int flags)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
virSecurityDeviceLabelDefPtr *seclabels = NULL;
size_t nseclabels = 0;
int n;
virDomainStorageNetCookieParse(xmlNodePtr node,
xmlXPathContextPtr ctxt)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
g_autoptr(virStorageNetCookieDef) cookie = NULL;
ctxt->node = node;
xmlXPathContextPtr ctxt,
virStorageSourcePtr src)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
g_autofree xmlNodePtr *nodes = NULL;
ssize_t nnodes;
size_t i;
xmlXPathContextPtr ctxt,
virStoragePRDefPtr *pr)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
ctxt->node = node;
virDomainStorageSourceParseSlice(xmlNodePtr node,
xmlXPathContextPtr ctxt)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
g_autofree char *offset = NULL;
g_autofree char *size = NULL;
g_autofree virStorageSourceSlicePtr ret = g_new0(virStorageSourceSlice, 1);
unsigned int flags,
virDomainXMLOptionPtr xmlopt)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr tmp;
ctxt->node = node;
unsigned int flags,
virDomainXMLOptionPtr xmlopt)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr source;
g_autoptr(virStorageSource) backingStore = NULL;
g_autofree char *type = NULL;
virDomainXMLOptionPtr xmlopt)
{
xmlNodePtr mirrorNode;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
g_autofree char *mirrorFormat = NULL;
g_autofree char *mirrorType = NULL;
g_autofree char *ready = NULL;
virDomainXMLOptionPtr xmlopt)
{
xmlNodePtr private_node = virXPathNode("./privateData", ctxt);
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
if (!xmlopt ||
!xmlopt->privateData.diskParse ||
{
virDomainDiskDefPtr def;
xmlNodePtr cur;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
bool source = false;
virStorageEncryptionPtr encryption = NULL;
g_autoptr(virStorageAuthDef) authdef = NULL;
bool processedTarget = false;
int numaNode = -1;
int ports = -1;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int rc;
g_autofree char *typeStr = NULL;
g_autofree char *idx = NULL;
xmlXPathContextPtr ctxt,
unsigned int flags)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
virDomainFSDefPtr def;
xmlNodePtr cur;
g_autofree char *type = NULL;
{
virDomainActualNetDefPtr actual = NULL;
int ret = -1;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr bandwidth_node = NULL;
xmlNodePtr vlanNode;
xmlNodePtr virtPortNode;
xmlXPathContextPtr ctxt)
{
int tmpVal;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr cur;
g_autofree char *tmp = NULL;
xmlNodePtr tmpNode;
virHashTablePtr filterparams = NULL;
virDomainActualNetDefPtr actual = NULL;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
virDomainChrSourceReconnectDef reconnect = {0};
int rv, val;
g_autofree char *macaddr = NULL;
/* Check for an optional seclabel override in <source/>. */
if (chr_def) {
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
ctxt->node = cur;
if (virSecurityDeviceLabelDefParseXML(&def->seclabels,
&def->nseclabels,
unsigned int flags)
{
virDomainTPMDefPtr def;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int nbackends;
g_autofree char *path = NULL;
g_autofree char *model = NULL;
xmlXPathContextPtr ctxt,
unsigned int flags)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
virDomainInputDefPtr def;
g_autofree char *evdev = NULL;
g_autofree char *type = NULL;
xmlXPathContextPtr ctxt)
{
virDomainTimerDefPtr def;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr catchup;
int ret;
g_autofree char *name = NULL;
xmlXPathContextPtr ctxt,
unsigned int flags)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
virDomainGraphicsListenDef newListen = {0};
int nListens;
int ret = -1;
xmlNodePtr node,
xmlXPathContextPtr ctxt)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int enableVal;
xmlNodePtr glNode;
g_autofree char *fullscreen = virXMLPropString(node, "fullscreen");
xmlNodePtr node,
xmlXPathContextPtr ctxt)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr glNode;
ctxt->node = node;
unsigned int flags)
{
virDomainSoundDefPtr def;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
g_autofree char *model = NULL;
xmlNodePtr audioNode;
xmlXPathContextPtr ctxt G_GNUC_UNUSED)
{
virDomainAudioDefPtr def;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
g_autofree char *tmp = NULL;
g_autofree char *type = NULL;
unsigned int flags)
{
virDomainRNGDefPtr def;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int nbackends;
g_autofree xmlNodePtr *backends = NULL;
g_autofree char *model = NULL;
unsigned int flags)
{
virDomainMemballoonDefPtr def;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
unsigned int period = 0;
g_autofree char *model = NULL;
g_autofree char *deflate = NULL;
virDomainShmemDefPtr def = NULL;
virDomainShmemDefPtr ret = NULL;
xmlNodePtr msi = NULL;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr server = NULL;
g_autofree char *tmp = NULL;
xmlXPathContextPtr ctxt,
virSysinfoBIOSDefPtr *bios)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int ret = -1;
virSysinfoBIOSDefPtr def;
unsigned char *domUUID,
bool uuid_generated)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int ret = -1;
virSysinfoSystemDefPtr def;
g_autofree char *tmpUUID = NULL;
size_t *nbaseBoard)
{
size_t i, nboards = 0;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int n;
g_autofree virSysinfoBaseBoardDefPtr boards = NULL;
g_autofree xmlNodePtr *nodes = NULL;
xmlXPathContextPtr ctxt,
virSysinfoOEMStringsDefPtr *oem)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int ret = -1;
virSysinfoOEMStringsDefPtr def;
int nstrings;
xmlXPathContextPtr ctxt,
virSysinfoChassisDefPtr *chassisdef)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int ret = -1;
virSysinfoChassisDefPtr def;
xmlNodePtr node,
xmlXPathContextPtr ctxt)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
g_autofree xmlNodePtr *nodes = NULL;
int n;
size_t i;
unsigned char *domUUID,
bool uuid_generated)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
virSysinfoDefPtr def;
g_autofree char *typeStr = NULL;
int type;
{
virDomainVideoDefPtr def;
xmlNodePtr cur;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
g_autofree char *type = NULL;
g_autofree char *driver_name = NULL;
g_autofree char *heads = NULL;
unsigned int flags)
{
virDomainHostdevDefPtr def;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
g_autofree char *mode = virXMLPropString(node, "mode");
g_autofree char *type = virXMLPropString(node, "type");
{
int n;
size_t i;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
virDomainRedirFilterDefPtr def = NULL;
g_autofree xmlNodePtr *nodes = NULL;
xmlXPathContextPtr ctxt,
virDomainMemoryDefPtr def)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
g_autofree char *nodemask = NULL;
ctxt->node = node;
xmlXPathContextPtr ctxt,
virDomainMemoryDefPtr def)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
- ctxt->node = node;
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int rv;
+ ctxt->node = node;
+
/* initialize to value which marks that the user didn't specify it */
def->targetNode = -1;
virDomainSEVDefParseXML(xmlNodePtr sevNode,
xmlXPathContextPtr ctxt)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
virDomainSEVDefPtr def;
unsigned long policy;
g_autofree char *type = NULL;
const virDomainDef *dom,
unsigned int flags)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr node;
virDomainMemoryDefPtr def;
int val;
virDomainIOMMUDefParseXML(xmlNodePtr node,
xmlXPathContextPtr ctxt)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr driver;
int val;
g_autofree char *tmp = NULL;
xmlXPathContextPtr ctxt,
unsigned int flags)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr cid;
int val;
g_autofree char *tmp = NULL;
{
size_t i;
virDomainIdMapEntryPtr idmap = NULL;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
if (VIR_ALLOC_N(idmap, num) < 0)
return idmap;
xmlXPathContextPtr ctxt,
virDomainHugePagePtr hugepage)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
g_autofree char *nodeset = NULL;
ctxt->node = node;
virDomainResourceDefParse(xmlNodePtr node,
xmlXPathContextPtr ctxt)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
virDomainResourceDefPtr def = NULL;
ctxt->node = node;
xmlNodePtr node,
virResctrlAllocPtr alloc)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
unsigned int level;
unsigned int cache;
int type;
virDomainResctrlDefPtr resctrl)
{
virDomainResctrlMonDefPtr domresmon = NULL;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
unsigned int level = 0;
size_t i = 0;
int n = 0;
xmlNodePtr node,
unsigned int flags)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
virDomainResctrlDefPtr resctrl = NULL;
ssize_t i = 0;
int n;
xmlNodePtr node,
virResctrlAllocPtr alloc)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
unsigned int id;
unsigned int bandwidth;
g_autofree char *tmp = NULL;
xmlNodePtr node,
unsigned int flags)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
virDomainResctrlDefPtr resctrl = NULL;
virDomainResctrlDefPtr newresctrl = NULL;
g_autoptr(virBitmap) vcpus = NULL;
xmlNodePtr node,
virNodeDevCapDRMPtr drm)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int ret = -1, val;
char *type = NULL;
xmlNodePtr node,
virNodeDevCapCCWPtr ccw_dev)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int ret = -1;
char *cssid = NULL, *ssid = NULL, *devno = NULL;
xmlNodePtr node,
virNodeDevCapStoragePtr storage)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr *nodes = NULL;
size_t i;
int n, ret = -1;
xmlNodePtr node,
virNodeDevCapSCSIPtr scsi)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int ret = -1;
ctxt->node = node;
xmlNodePtr node,
virNodeDevCapSCSITargetPtr scsi_target)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr *nodes = NULL;
int ret = -1, n = 0;
size_t i;
int create,
const char *virt_type)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr *nodes = NULL;
int ret = -1, n = 0;
size_t i;
xmlNodePtr node,
virNodeDevCapNetPtr net)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr lnk;
size_t i = -1;
int ret = -1, n = -1;
xmlNodePtr node,
virNodeDevCapUSBIfPtr usb_if)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int ret = -1;
ctxt->node = node;
xmlNodePtr node,
virNodeDevCapUSBDevPtr usb_dev)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int ret = -1;
ctxt->node = node;
xmlNodePtr iommuGroupNode,
virNodeDevCapPCIDevPtr pci_dev)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr *addrNodes = NULL;
char *numberStr = NULL;
int nAddrNodes, ret = -1;
xmlNodePtr linkNode,
virPCIELinkPtr lnk)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int ret = -1, speed;
char *speedStr = NULL, *portStr = NULL;
xmlNodePtr pciExpressNode,
virPCIEDeviceInfoPtr pci_express)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr lnk;
int ret = -1;
virNodeDevCapPCIDevPtr pci_dev)
{
char *type = virXMLPropString(node, "type");
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int ret = -1;
ctxt->node = node;
xmlNodePtr node,
virNodeDevCapPCIDevPtr pci_dev)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr iommuGroupNode;
xmlNodePtr pciExpress;
xmlNodePtr *nodes = NULL;
{
virNodeDevCapSystemHardwarePtr hardware = &syscap->hardware;
virNodeDevCapSystemFirmwarePtr firmware = &syscap->firmware;
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int ret = -1;
char *tmp;
xmlNodePtr node,
virNodeDevCapMdevPtr mdev)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
g_autoptr(virMediatedDeviceAttr) attr = virMediatedDeviceAttrNew();
ctxt->node = node;
xmlNodePtr node,
virNodeDevCapMdevPtr mdev)
{
- VIR_XPATH_NODE_AUTORESTORE(ctxt);
+ VIR_XPATH_NODE_AUTORESTORE(ctxt)
int ret = -1;
int nattrs = 0;
g_autofree xmlNodePtr *attrs = NULL;