mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
libxl: Move virDomainXMLOptionNew into libxlCreateXMLConf
To allow the test suite to creat the XML option object, move the virDomainXMLOptionNew call into a libxlCreateXMLConf method. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
a6abdbf645
commit
3bab69c30f
@ -1336,3 +1336,11 @@ libxlBuildDomainConfig(virPortAllocatorPtr graphicsports,
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virDomainXMLOptionPtr
|
||||||
|
libxlCreateXMLConf(void)
|
||||||
|
{
|
||||||
|
return virDomainXMLOptionNew(&libxlDomainDefParserConfig,
|
||||||
|
&libxlDomainXMLPrivateDataCallbacks,
|
||||||
|
NULL);
|
||||||
|
}
|
||||||
|
@ -158,6 +158,9 @@ libxlMakeVfb(virPortAllocatorPtr graphicsports,
|
|||||||
int
|
int
|
||||||
libxlMakePCI(virDomainHostdevDefPtr hostdev, libxl_device_pci *pcidev);
|
libxlMakePCI(virDomainHostdevDefPtr hostdev, libxl_device_pci *pcidev);
|
||||||
|
|
||||||
|
virDomainXMLOptionPtr
|
||||||
|
libxlCreateXMLConf(void);
|
||||||
|
|
||||||
int
|
int
|
||||||
libxlBuildDomainConfig(virPortAllocatorPtr graphicsports,
|
libxlBuildDomainConfig(virPortAllocatorPtr graphicsports,
|
||||||
virDomainDefPtr def,
|
virDomainDefPtr def,
|
||||||
|
@ -353,9 +353,7 @@ libxlStateInitialize(bool privileged,
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(libxl_driver->xmlopt = virDomainXMLOptionNew(&libxlDomainDefParserConfig,
|
if (!(libxl_driver->xmlopt = libxlCreateXMLConf()))
|
||||||
&libxlDomainXMLPrivateDataCallbacks,
|
|
||||||
NULL)))
|
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
/* Load running domains first. */
|
/* Load running domains first. */
|
||||||
|
Loading…
Reference in New Issue
Block a user