mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +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;
|
||||
}
|
||||
|
||||
virDomainXMLOptionPtr
|
||||
libxlCreateXMLConf(void)
|
||||
{
|
||||
return virDomainXMLOptionNew(&libxlDomainDefParserConfig,
|
||||
&libxlDomainXMLPrivateDataCallbacks,
|
||||
NULL);
|
||||
}
|
||||
|
@ -158,6 +158,9 @@ libxlMakeVfb(virPortAllocatorPtr graphicsports,
|
||||
int
|
||||
libxlMakePCI(virDomainHostdevDefPtr hostdev, libxl_device_pci *pcidev);
|
||||
|
||||
virDomainXMLOptionPtr
|
||||
libxlCreateXMLConf(void);
|
||||
|
||||
int
|
||||
libxlBuildDomainConfig(virPortAllocatorPtr graphicsports,
|
||||
virDomainDefPtr def,
|
||||
|
@ -353,9 +353,7 @@ libxlStateInitialize(bool privileged,
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (!(libxl_driver->xmlopt = virDomainXMLOptionNew(&libxlDomainDefParserConfig,
|
||||
&libxlDomainXMLPrivateDataCallbacks,
|
||||
NULL)))
|
||||
if (!(libxl_driver->xmlopt = libxlCreateXMLConf()))
|
||||
goto error;
|
||||
|
||||
/* Load running domains first. */
|
||||
|
Loading…
Reference in New Issue
Block a user