mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
Rename internal DumpXML functions to GetXMLDesc
This matches the public API and helps to get rid of some special case code in the remote generator. Rename driver API functions and XDR protocol structs. No functional change included outside of the remote generator.
This commit is contained in:
parent
fcf967f2ad
commit
9817604afc
@ -645,8 +645,6 @@ elsif ($opt_b) {
|
||||
$prefix = "Connect"
|
||||
} elsif ($calls{$_}->{ProcName} eq "SupportsFeature") {
|
||||
$prefix = "Drv"
|
||||
} elsif ($calls{$_}->{ProcName} =~ m/^(\S+)DumpXML$/) {
|
||||
$proc_name = "${1}GetXMLDesc"
|
||||
} elsif ($calls{$_}->{ProcName} eq "CPUBaseline") {
|
||||
$proc_name = "ConnectBaselineCPU"
|
||||
} elsif ($calls{$_}->{ProcName} eq "CPUCompare") {
|
||||
@ -892,8 +890,8 @@ elsif ($opt_k) {
|
||||
# fix bad decisions in the xdr protocol
|
||||
if ($arg_name eq "flags" and
|
||||
$call->{ProcName} ne "DomainCoreDump" and
|
||||
$call->{ProcName} ne "DomainDumpXML" and
|
||||
$call->{ProcName} ne "NetworkDumpXML") {
|
||||
$call->{ProcName} ne "DomainGetXMLDesc" and
|
||||
$call->{ProcName} ne "NetworkGetXMLDesc") {
|
||||
$type_name = "unsigned int";
|
||||
} elsif ($arg_name eq "nvcpus" and
|
||||
$call->{ProcName} eq "DomainSetVcpus") {
|
||||
|
16
src/driver.h
16
src/driver.h
@ -176,7 +176,7 @@ typedef int
|
||||
const char *to,
|
||||
int flags);
|
||||
typedef char *
|
||||
(*virDrvDomainDumpXML) (virDomainPtr dom,
|
||||
(*virDrvDomainGetXMLDesc) (virDomainPtr dom,
|
||||
int flags);
|
||||
typedef char *
|
||||
(*virDrvConnectDomainXMLFromNative) (virConnectPtr conn,
|
||||
@ -474,7 +474,7 @@ typedef virDomainSnapshotPtr
|
||||
unsigned int flags);
|
||||
|
||||
typedef char *
|
||||
(*virDrvDomainSnapshotDumpXML)(virDomainSnapshotPtr snapshot,
|
||||
(*virDrvDomainSnapshotGetXMLDesc)(virDomainSnapshotPtr snapshot,
|
||||
unsigned int flags);
|
||||
|
||||
typedef int
|
||||
@ -577,7 +577,7 @@ struct _virDriver {
|
||||
virDrvDomainGetMaxVcpus domainGetMaxVcpus;
|
||||
virDrvDomainGetSecurityLabel domainGetSecurityLabel;
|
||||
virDrvNodeGetSecurityModel nodeGetSecurityModel;
|
||||
virDrvDomainDumpXML domainDumpXML;
|
||||
virDrvDomainGetXMLDesc domainGetXMLDesc;
|
||||
virDrvConnectDomainXMLFromNative domainXMLFromNative;
|
||||
virDrvConnectDomainXMLToNative domainXMLToNative;
|
||||
virDrvListDefinedDomains listDefinedDomains;
|
||||
@ -632,7 +632,7 @@ struct _virDriver {
|
||||
virDrvDomainHasManagedSaveImage domainHasManagedSaveImage;
|
||||
virDrvDomainManagedSaveRemove domainManagedSaveRemove;
|
||||
virDrvDomainSnapshotCreateXML domainSnapshotCreateXML;
|
||||
virDrvDomainSnapshotDumpXML domainSnapshotDumpXML;
|
||||
virDrvDomainSnapshotGetXMLDesc domainSnapshotGetXMLDesc;
|
||||
virDrvDomainSnapshotNum domainSnapshotNum;
|
||||
virDrvDomainSnapshotListNames domainSnapshotListNames;
|
||||
virDrvDomainSnapshotLookupByName domainSnapshotLookupByName;
|
||||
@ -676,7 +676,7 @@ typedef int
|
||||
typedef int
|
||||
(*virDrvNetworkDestroy) (virNetworkPtr network);
|
||||
typedef char *
|
||||
(*virDrvNetworkDumpXML) (virNetworkPtr network,
|
||||
(*virDrvNetworkGetXMLDesc) (virNetworkPtr network,
|
||||
int flags);
|
||||
typedef char *
|
||||
(*virDrvNetworkGetBridgeName) (virNetworkPtr network);
|
||||
@ -722,7 +722,7 @@ struct _virNetworkDriver {
|
||||
virDrvNetworkUndefine networkUndefine;
|
||||
virDrvNetworkCreate networkCreate;
|
||||
virDrvNetworkDestroy networkDestroy;
|
||||
virDrvNetworkDumpXML networkDumpXML;
|
||||
virDrvNetworkGetXMLDesc networkGetXMLDesc;
|
||||
virDrvNetworkGetBridgeName networkGetBridgeName;
|
||||
virDrvNetworkGetAutostart networkGetAutostart;
|
||||
virDrvNetworkSetAutostart networkSetAutostart;
|
||||
@ -1021,7 +1021,7 @@ typedef int (*virDevMonListDevices)(virConnectPtr conn,
|
||||
typedef virNodeDevicePtr (*virDevMonDeviceLookupByName)(virConnectPtr conn,
|
||||
const char *name);
|
||||
|
||||
typedef char * (*virDevMonDeviceDumpXML)(virNodeDevicePtr dev,
|
||||
typedef char * (*virDevMonDeviceGetXMLDesc)(virNodeDevicePtr dev,
|
||||
unsigned int flags);
|
||||
|
||||
typedef char * (*virDevMonDeviceGetParent)(virNodeDevicePtr dev);
|
||||
@ -1051,7 +1051,7 @@ struct _virDeviceMonitor {
|
||||
virDevMonNumOfDevices numOfDevices;
|
||||
virDevMonListDevices listDevices;
|
||||
virDevMonDeviceLookupByName deviceLookupByName;
|
||||
virDevMonDeviceDumpXML deviceDumpXML;
|
||||
virDevMonDeviceGetXMLDesc deviceGetXMLDesc;
|
||||
virDevMonDeviceGetParent deviceGetParent;
|
||||
virDevMonDeviceNumOfCaps deviceNumOfCaps;
|
||||
virDevMonDeviceListCaps deviceListCaps;
|
||||
|
@ -72,7 +72,7 @@ static virDeviceMonitor esxDeviceMonitor = {
|
||||
NULL, /* numOfDevices */
|
||||
NULL, /* listDevices */
|
||||
NULL, /* deviceLookupByName */
|
||||
NULL, /* deviceDumpXML */
|
||||
NULL, /* deviceGetXMLDesc */
|
||||
NULL, /* deviceGetParent */
|
||||
NULL, /* deviceNumOfCaps */
|
||||
NULL, /* deviceListCaps */
|
||||
|
@ -2610,7 +2610,7 @@ esxDomainGetMaxVcpus(virDomainPtr domain)
|
||||
|
||||
|
||||
static char *
|
||||
esxDomainDumpXML(virDomainPtr domain, int flags)
|
||||
esxDomainGetXMLDesc(virDomainPtr domain, int flags)
|
||||
{
|
||||
esxPrivate *priv = domain->conn->privateData;
|
||||
esxVI_String *propertyNameList = NULL;
|
||||
@ -4137,7 +4137,7 @@ esxDomainSnapshotCreateXML(virDomainPtr domain, const char *xmlDesc,
|
||||
|
||||
|
||||
static char *
|
||||
esxDomainSnapshotDumpXML(virDomainSnapshotPtr snapshot,
|
||||
esxDomainSnapshotGetXMLDesc(virDomainSnapshotPtr snapshot,
|
||||
unsigned int flags)
|
||||
{
|
||||
esxPrivate *priv = snapshot->domain->conn->privateData;
|
||||
@ -4634,7 +4634,7 @@ static virDriver esxDriver = {
|
||||
esxDomainGetMaxVcpus, /* domainGetMaxVcpus */
|
||||
NULL, /* domainGetSecurityLabel */
|
||||
NULL, /* nodeGetSecurityModel */
|
||||
esxDomainDumpXML, /* domainDumpXML */
|
||||
esxDomainGetXMLDesc, /* domainGetXMLDesc */
|
||||
esxDomainXMLFromNative, /* domainXMLFromNative */
|
||||
esxDomainXMLToNative, /* domainXMLToNative */
|
||||
esxListDefinedDomains, /* listDefinedDomains */
|
||||
@ -4689,7 +4689,7 @@ static virDriver esxDriver = {
|
||||
NULL, /* domainHasManagedSaveImage */
|
||||
NULL, /* domainManagedSaveRemove */
|
||||
esxDomainSnapshotCreateXML, /* domainSnapshotCreateXML */
|
||||
esxDomainSnapshotDumpXML, /* domainSnapshotDumpXML */
|
||||
esxDomainSnapshotGetXMLDesc, /* domainSnapshotGetXMLDesc */
|
||||
esxDomainSnapshotNum, /* domainSnapshotNum */
|
||||
esxDomainSnapshotListNames, /* domainSnapshotListNames */
|
||||
esxDomainSnapshotLookupByName, /* domainSnapshotLookupByName */
|
||||
|
@ -80,7 +80,7 @@ static virNetworkDriver esxNetworkDriver = {
|
||||
NULL, /* networkUndefine */
|
||||
NULL, /* networkCreate */
|
||||
NULL, /* networkDestroy */
|
||||
NULL, /* networkDumpXML */
|
||||
NULL, /* networkGetXMLDesc */
|
||||
NULL, /* networkGetBridgeName */
|
||||
NULL, /* networkGetAutostart */
|
||||
NULL, /* networkSetAutostart */
|
||||
|
@ -1523,7 +1523,7 @@ esxStorageVolumeGetInfo(virStorageVolPtr volume, virStorageVolInfoPtr info)
|
||||
|
||||
|
||||
static char *
|
||||
esxStorageVolumeDumpXML(virStorageVolPtr volume, unsigned int flags)
|
||||
esxStorageVolumeGetXMLDesc(virStorageVolPtr volume, unsigned int flags)
|
||||
{
|
||||
esxPrivate *priv = volume->conn->storagePrivateData;
|
||||
virStoragePoolDef pool;
|
||||
@ -1676,7 +1676,7 @@ static virStorageDriver esxStorageDriver = {
|
||||
esxStorageVolumeDelete, /* volDelete */
|
||||
esxStorageVolumeWipe, /* volWipe */
|
||||
esxStorageVolumeGetInfo, /* volGetInfo */
|
||||
esxStorageVolumeDumpXML, /* volGetXMLDesc */
|
||||
esxStorageVolumeGetXMLDesc, /* volGetXMLDesc */
|
||||
esxStorageVolumeGetPath, /* volGetPath */
|
||||
esxStoragePoolIsActive, /* poolIsActive */
|
||||
esxStoragePoolIsPersistent, /* poolIsPersistent */
|
||||
|
@ -3207,9 +3207,9 @@ virDomainGetXMLDesc(virDomainPtr domain, int flags)
|
||||
|
||||
flags &= VIR_DOMAIN_XML_FLAGS_MASK;
|
||||
|
||||
if (conn->driver->domainDumpXML) {
|
||||
if (conn->driver->domainGetXMLDesc) {
|
||||
char *ret;
|
||||
ret = conn->driver->domainDumpXML (domain, flags);
|
||||
ret = conn->driver->domainGetXMLDesc(domain, flags);
|
||||
if (!ret)
|
||||
goto error;
|
||||
return ret;
|
||||
@ -3431,12 +3431,12 @@ virDomainMigrateVersion2 (virDomainPtr domain,
|
||||
* different. We fetch the domain XML of the source domain
|
||||
* and pass it to Prepare2.
|
||||
*/
|
||||
if (!domain->conn->driver->domainDumpXML) {
|
||||
if (!domain->conn->driver->domainGetXMLDesc) {
|
||||
virLibConnError(VIR_ERR_INTERNAL_ERROR, __FUNCTION__);
|
||||
virDispatchError(domain->conn);
|
||||
return NULL;
|
||||
}
|
||||
dom_xml = domain->conn->driver->domainDumpXML (domain,
|
||||
dom_xml = domain->conn->driver->domainGetXMLDesc(domain,
|
||||
VIR_DOMAIN_XML_SECURE |
|
||||
VIR_DOMAIN_XML_UPDATE_CPU);
|
||||
if (!dom_xml)
|
||||
@ -6760,9 +6760,9 @@ virNetworkGetXMLDesc(virNetworkPtr network, int flags)
|
||||
|
||||
conn = network->conn;
|
||||
|
||||
if (conn->networkDriver && conn->networkDriver->networkDumpXML) {
|
||||
if (conn->networkDriver && conn->networkDriver->networkGetXMLDesc) {
|
||||
char *ret;
|
||||
ret = conn->networkDriver->networkDumpXML (network, flags);
|
||||
ret = conn->networkDriver->networkGetXMLDesc(network, flags);
|
||||
if (!ret)
|
||||
goto error;
|
||||
return ret;
|
||||
@ -9677,9 +9677,9 @@ char *virNodeDeviceGetXMLDesc(virNodeDevicePtr dev, unsigned int flags)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (dev->conn->deviceMonitor && dev->conn->deviceMonitor->deviceDumpXML) {
|
||||
if (dev->conn->deviceMonitor && dev->conn->deviceMonitor->deviceGetXMLDesc) {
|
||||
char *ret;
|
||||
ret = dev->conn->deviceMonitor->deviceDumpXML (dev, flags);
|
||||
ret = dev->conn->deviceMonitor->deviceGetXMLDesc(dev, flags);
|
||||
if (!ret)
|
||||
goto error;
|
||||
return ret;
|
||||
@ -13098,9 +13098,9 @@ virDomainSnapshotGetXMLDesc(virDomainSnapshotPtr snapshot,
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (conn->driver->domainSnapshotDumpXML) {
|
||||
if (conn->driver->domainSnapshotGetXMLDesc) {
|
||||
char *ret;
|
||||
ret = conn->driver->domainSnapshotDumpXML(snapshot, flags);
|
||||
ret = conn->driver->domainSnapshotGetXMLDesc(snapshot, flags);
|
||||
if (!ret)
|
||||
goto error;
|
||||
return ret;
|
||||
|
@ -1916,7 +1916,7 @@ cleanup:
|
||||
}
|
||||
|
||||
static char *
|
||||
libxlDomainDumpXML(virDomainPtr dom, int flags)
|
||||
libxlDomainGetXMLDesc(virDomainPtr dom, int flags)
|
||||
{
|
||||
libxlDriverPrivatePtr driver = dom->conn->privateData;
|
||||
virDomainObjPtr vm;
|
||||
@ -2725,7 +2725,7 @@ static virDriver libxlDriver = {
|
||||
NULL, /* domainGetMaxVcpus */
|
||||
NULL, /* domainGetSecurityLabel */
|
||||
NULL, /* nodeGetSecurityModel */
|
||||
libxlDomainDumpXML, /* domainDumpXML */
|
||||
libxlDomainGetXMLDesc, /* domainGetXMLDesc */
|
||||
libxlDomainXMLFromNative, /* domainXmlFromNative */
|
||||
libxlDomainXMLToNative, /* domainXmlToNative */
|
||||
libxlListDefinedDomains, /* listDefinedDomains */
|
||||
@ -2780,7 +2780,7 @@ static virDriver libxlDriver = {
|
||||
NULL, /* domainHasManagedSaveImage */
|
||||
NULL, /* domainManagedSaveRemove */
|
||||
NULL, /* domainSnapshotCreateXML */
|
||||
NULL, /* domainSnapshotDumpXML */
|
||||
NULL, /* domainSnapshotGetXMLDesc */
|
||||
NULL, /* domainSnapshotNum */
|
||||
NULL, /* domainSnapshotListNames */
|
||||
NULL, /* domainSnapshotLookupByName */
|
||||
|
@ -918,7 +918,7 @@ cleanup:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static char *lxcDomainDumpXML(virDomainPtr dom,
|
||||
static char *lxcDomainGetXMLDesc(virDomainPtr dom,
|
||||
int flags)
|
||||
{
|
||||
lxc_driver_t *driver = dom->conn->privateData;
|
||||
@ -2750,7 +2750,7 @@ static virDriver lxcDriver = {
|
||||
NULL, /* domainGetMaxVcpus */
|
||||
NULL, /* domainGetSecurityLabel */
|
||||
NULL, /* nodeGetSecurityModel */
|
||||
lxcDomainDumpXML, /* domainDumpXML */
|
||||
lxcDomainGetXMLDesc, /* domainGetXMLDesc */
|
||||
NULL, /* domainXMLFromNative */
|
||||
NULL, /* domainXMLToNative */
|
||||
lxcListDefinedDomains, /* listDefinedDomains */
|
||||
@ -2805,7 +2805,7 @@ static virDriver lxcDriver = {
|
||||
NULL, /* domainHasManagedSaveImage */
|
||||
NULL, /* domainManagedSaveRemove */
|
||||
NULL, /* domainSnapshotCreateXML */
|
||||
NULL, /* domainSnapshotDumpXML */
|
||||
NULL, /* domainSnapshotGetXMLDesc */
|
||||
NULL, /* domainSnapshotNum */
|
||||
NULL, /* domainSnapshotListNames */
|
||||
NULL, /* domainSnapshotLookupByName */
|
||||
|
@ -2356,7 +2356,7 @@ cleanup:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static char *networkDumpXML(virNetworkPtr net, int flags ATTRIBUTE_UNUSED) {
|
||||
static char *networkGetXMLDesc(virNetworkPtr net, int flags ATTRIBUTE_UNUSED) {
|
||||
struct network_driver *driver = net->conn->networkPrivateData;
|
||||
virNetworkObjPtr network;
|
||||
char *ret = NULL;
|
||||
@ -2517,7 +2517,7 @@ static virNetworkDriver networkDriver = {
|
||||
networkUndefine, /* networkUndefine */
|
||||
networkStart, /* networkCreate */
|
||||
networkDestroy, /* networkDestroy */
|
||||
networkDumpXML, /* networkDumpXML */
|
||||
networkGetXMLDesc, /* networkGetXMLDesc */
|
||||
networkGetBridgeName, /* networkGetBridgeName */
|
||||
networkGetAutostart, /* networkGetAutostart */
|
||||
networkSetAutostart, /* networkSetAutostart */
|
||||
|
@ -251,7 +251,7 @@ out:
|
||||
}
|
||||
|
||||
|
||||
static char *nodeDeviceDumpXML(virNodeDevicePtr dev,
|
||||
static char *nodeDeviceGetXMLDesc(virNodeDevicePtr dev,
|
||||
unsigned int flags ATTRIBUTE_UNUSED)
|
||||
{
|
||||
virDeviceMonitorStatePtr driver = dev->conn->devMonPrivateData;
|
||||
@ -657,7 +657,7 @@ void registerCommonNodeFuncs(virDeviceMonitorPtr driver)
|
||||
driver->numOfDevices = nodeNumOfDevices;
|
||||
driver->listDevices = nodeListDevices;
|
||||
driver->deviceLookupByName = nodeDeviceLookupByName;
|
||||
driver->deviceDumpXML = nodeDeviceDumpXML;
|
||||
driver->deviceGetXMLDesc = nodeDeviceGetXMLDesc;
|
||||
driver->deviceGetParent = nodeDeviceGetParent;
|
||||
driver->deviceNumOfCaps = nodeDeviceNumOfCaps;
|
||||
driver->deviceListCaps = nodeDeviceListCaps;
|
||||
|
@ -406,7 +406,7 @@ cleanup:
|
||||
|
||||
|
||||
static char *
|
||||
nwfilterDumpXML(virNWFilterPtr obj,
|
||||
nwfilterGetXMLDesc(virNWFilterPtr obj,
|
||||
unsigned int flags) {
|
||||
virNWFilterDriverStatePtr driver = obj->conn->nwfilterPrivateData;
|
||||
virNWFilterObjPtr nwfilter;
|
||||
@ -457,7 +457,7 @@ static virNWFilterDriver nwfilterDriver = {
|
||||
.nwfilterLookupByUUID = nwfilterLookupByUUID,
|
||||
.defineXML = nwfilterDefine,
|
||||
.undefine = nwfilterUndefine,
|
||||
.getXMLDesc = nwfilterDumpXML,
|
||||
.getXMLDesc = nwfilterGetXMLDesc,
|
||||
};
|
||||
|
||||
|
||||
|
@ -425,7 +425,7 @@ static int openvzDomainIsUpdated(virDomainPtr dom ATTRIBUTE_UNUSED)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static char *openvzDomainDumpXML(virDomainPtr dom, int flags) {
|
||||
static char *openvzDomainGetXMLDesc(virDomainPtr dom, int flags) {
|
||||
struct openvz_driver *driver = dom->conn->privateData;
|
||||
virDomainObjPtr vm;
|
||||
char *ret = NULL;
|
||||
@ -1602,7 +1602,7 @@ static virDriver openvzDriver = {
|
||||
openvzDomainGetMaxVcpus, /* domainGetMaxVcpus */
|
||||
NULL, /* domainGetSecurityLabel */
|
||||
NULL, /* nodeGetSecurityModel */
|
||||
openvzDomainDumpXML, /* domainDumpXML */
|
||||
openvzDomainGetXMLDesc, /* domainGetXMLDesc */
|
||||
NULL, /* domainXmlFromNative */
|
||||
NULL, /* domainXmlToNative */
|
||||
openvzListDefinedDomains, /* listDefinedDomains */
|
||||
@ -1657,7 +1657,7 @@ static virDriver openvzDriver = {
|
||||
NULL, /* domainHasManagedSaveImage */
|
||||
NULL, /* domainManagedSaveRemove */
|
||||
NULL, /* domainSnapshotCreateXML */
|
||||
NULL, /* domainSnapshotDumpXML */
|
||||
NULL, /* domainSnapshotGetXMLDesc */
|
||||
NULL, /* domainSnapshotNum */
|
||||
NULL, /* domainSnapshotListNames */
|
||||
NULL, /* domainSnapshotLookupByName */
|
||||
|
@ -3302,7 +3302,7 @@ cleanup:
|
||||
}
|
||||
|
||||
static char *
|
||||
phypDomainDumpXML(virDomainPtr dom, int flags)
|
||||
phypDomainGetXMLDesc(virDomainPtr dom, int flags)
|
||||
{
|
||||
ConnectionData *connection_data = dom->conn->networkPrivateData;
|
||||
phyp_driverPtr phyp_driver = dom->conn->privateData;
|
||||
@ -3763,7 +3763,7 @@ static virDriver phypDriver = {
|
||||
phypGetLparCPUMAX, /* domainGetMaxVcpus */
|
||||
NULL, /* domainGetSecurityLabel */
|
||||
NULL, /* nodeGetSecurityModel */
|
||||
phypDomainDumpXML, /* domainDumpXML */
|
||||
phypDomainGetXMLDesc, /* domainGetXMLDesc */
|
||||
NULL, /* domainXMLFromNative */
|
||||
NULL, /* domainXMLToNative */
|
||||
phypListDefinedDomains, /* listDefinedDomains */
|
||||
@ -3818,7 +3818,7 @@ static virDriver phypDriver = {
|
||||
NULL, /* domainHasManagedSaveImage */
|
||||
NULL, /* domainManagedSaveRemove */
|
||||
NULL, /* domainSnapshotCreateXML */
|
||||
NULL, /* domainSnapshotDumpXML */
|
||||
NULL, /* domainSnapshotGetXMLDesc */
|
||||
NULL, /* domainSnapshotNum */
|
||||
NULL, /* domainSnapshotListNames */
|
||||
NULL, /* domainSnapshotLookupByName */
|
||||
|
@ -241,7 +241,7 @@ qemuNetworkIfaceConnect(virDomainDefPtr def,
|
||||
virReportOOMError();
|
||||
goto cleanup;
|
||||
}
|
||||
/* avoid exposing vnet%d in dumpxml or error outputs */
|
||||
/* avoid exposing vnet%d in getXMLDesc or error outputs */
|
||||
template_ifname = 1;
|
||||
}
|
||||
|
||||
|
@ -3331,7 +3331,7 @@ cleanup:
|
||||
}
|
||||
|
||||
|
||||
static char *qemudDomainDumpXML(virDomainPtr dom,
|
||||
static char *qemuDomainGetXMLDesc(virDomainPtr dom,
|
||||
int flags) {
|
||||
struct qemud_driver *driver = dom->conn->privateData;
|
||||
virDomainObjPtr vm;
|
||||
@ -6624,7 +6624,7 @@ cleanup:
|
||||
return snapshot;
|
||||
}
|
||||
|
||||
static char *qemuDomainSnapshotDumpXML(virDomainSnapshotPtr snapshot,
|
||||
static char *qemuDomainSnapshotGetXMLDesc(virDomainSnapshotPtr snapshot,
|
||||
unsigned int flags)
|
||||
{
|
||||
struct qemud_driver *driver = snapshot->domain->conn->privateData;
|
||||
@ -7171,7 +7171,7 @@ static virDriver qemuDriver = {
|
||||
qemudDomainGetMaxVcpus, /* domainGetMaxVcpus */
|
||||
qemudDomainGetSecurityLabel, /* domainGetSecurityLabel */
|
||||
qemudNodeGetSecurityModel, /* nodeGetSecurityModel */
|
||||
qemudDomainDumpXML, /* domainDumpXML */
|
||||
qemuDomainGetXMLDesc, /* domainGetXMLDesc */
|
||||
qemuDomainXMLFromNative, /* domainXmlFromNative */
|
||||
qemuDomainXMLToNative, /* domainXMLToNative */
|
||||
qemudListDefinedDomains, /* listDefinedDomains */
|
||||
@ -7226,7 +7226,7 @@ static virDriver qemuDriver = {
|
||||
qemuDomainHasManagedSaveImage, /* domainHasManagedSaveImage */
|
||||
qemuDomainManagedSaveRemove, /* domainManagedSaveRemove */
|
||||
qemuDomainSnapshotCreateXML, /* domainSnapshotCreateXML */
|
||||
qemuDomainSnapshotDumpXML, /* domainSnapshotDumpXML */
|
||||
qemuDomainSnapshotGetXMLDesc, /* domainSnapshotGetXMLDesc */
|
||||
qemuDomainSnapshotNum, /* domainSnapshotNum */
|
||||
qemuDomainSnapshotListNames, /* domainSnapshotListNames */
|
||||
qemuDomainSnapshotLookupByName, /* domainSnapshotLookupByName */
|
||||
|
@ -6428,7 +6428,7 @@ static virDriver remote_driver = {
|
||||
remoteDomainGetMaxVcpus, /* domainGetMaxVcpus */
|
||||
remoteDomainGetSecurityLabel, /* domainGetSecurityLabel */
|
||||
remoteNodeGetSecurityModel, /* nodeGetSecurityModel */
|
||||
remoteDomainDumpXML, /* domainDumpXML */
|
||||
remoteDomainGetXMLDesc, /* domainGetXMLDesc */
|
||||
remoteDomainXMLFromNative, /* domainXMLFromNative */
|
||||
remoteDomainXMLToNative, /* domainXMLToNative */
|
||||
remoteListDefinedDomains, /* listDefinedDomains */
|
||||
@ -6483,7 +6483,7 @@ static virDriver remote_driver = {
|
||||
remoteDomainHasManagedSaveImage, /* domainHasManagedSaveImage */
|
||||
remoteDomainManagedSaveRemove, /* domainManagedSaveRemove */
|
||||
remoteDomainSnapshotCreateXML, /* domainSnapshotCreateXML */
|
||||
remoteDomainSnapshotDumpXML, /* domainSnapshotDumpXML */
|
||||
remoteDomainSnapshotGetXMLDesc, /* domainSnapshotGetXMLDesc */
|
||||
remoteDomainSnapshotNum, /* domainSnapshotNum */
|
||||
remoteDomainSnapshotListNames, /* domainSnapshotListNames */
|
||||
remoteDomainSnapshotLookupByName, /* domainSnapshotLookupByName */
|
||||
@ -6511,7 +6511,7 @@ static virNetworkDriver network_driver = {
|
||||
.networkUndefine = remoteNetworkUndefine,
|
||||
.networkCreate = remoteNetworkCreate,
|
||||
.networkDestroy = remoteNetworkDestroy,
|
||||
.networkDumpXML = remoteNetworkDumpXML,
|
||||
.networkGetXMLDesc = remoteNetworkGetXMLDesc,
|
||||
.networkGetBridgeName = remoteNetworkGetBridgeName,
|
||||
.networkGetAutostart = remoteNetworkGetAutostart,
|
||||
.networkSetAutostart = remoteNetworkSetAutostart,
|
||||
@ -6558,7 +6558,7 @@ static virStorageDriver storage_driver = {
|
||||
.poolDelete = remoteStoragePoolDelete,
|
||||
.poolRefresh = remoteStoragePoolRefresh,
|
||||
.poolGetInfo = remoteStoragePoolGetInfo,
|
||||
.poolGetXMLDesc = remoteStoragePoolDumpXML,
|
||||
.poolGetXMLDesc = remoteStoragePoolGetXMLDesc,
|
||||
.poolGetAutostart = remoteStoragePoolGetAutostart,
|
||||
.poolSetAutostart = remoteStoragePoolSetAutostart,
|
||||
.poolNumOfVolumes = remoteStoragePoolNumOfVolumes,
|
||||
@ -6574,7 +6574,7 @@ static virStorageDriver storage_driver = {
|
||||
.volDelete = remoteStorageVolDelete,
|
||||
.volWipe = remoteStorageVolWipe,
|
||||
.volGetInfo = remoteStorageVolGetInfo,
|
||||
.volGetXMLDesc = remoteStorageVolDumpXML,
|
||||
.volGetXMLDesc = remoteStorageVolGetXMLDesc,
|
||||
.volGetPath = remoteStorageVolGetPath,
|
||||
.poolIsActive = remoteStoragePoolIsActive,
|
||||
.poolIsPersistent = remoteStoragePoolIsPersistent,
|
||||
@ -6602,7 +6602,7 @@ static virDeviceMonitor dev_monitor = {
|
||||
.numOfDevices = remoteNodeNumOfDevices,
|
||||
.listDevices = remoteNodeListDevices,
|
||||
.deviceLookupByName = remoteNodeDeviceLookupByName,
|
||||
.deviceDumpXML = remoteNodeDeviceDumpXML,
|
||||
.deviceGetXMLDesc = remoteNodeDeviceGetXMLDesc,
|
||||
.deviceGetParent = remoteNodeDeviceGetParent,
|
||||
.deviceNumOfCaps = remoteNodeDeviceNumOfCaps,
|
||||
.deviceListCaps = remoteNodeDeviceListCaps,
|
||||
|
@ -714,12 +714,12 @@ struct remote_domain_core_dump_args {
|
||||
int flags;
|
||||
};
|
||||
|
||||
struct remote_domain_dump_xml_args {
|
||||
struct remote_domain_get_xml_desc_args {
|
||||
remote_nonnull_domain dom;
|
||||
int flags;
|
||||
};
|
||||
|
||||
struct remote_domain_dump_xml_ret {
|
||||
struct remote_domain_get_xml_desc_ret {
|
||||
remote_nonnull_string xml;
|
||||
};
|
||||
|
||||
@ -992,12 +992,12 @@ struct remote_network_destroy_args {
|
||||
remote_nonnull_network net;
|
||||
};
|
||||
|
||||
struct remote_network_dump_xml_args {
|
||||
struct remote_network_get_xml_desc_args {
|
||||
remote_nonnull_network net;
|
||||
int flags;
|
||||
};
|
||||
|
||||
struct remote_network_dump_xml_ret {
|
||||
struct remote_network_get_xml_desc_ret {
|
||||
remote_nonnull_string xml;
|
||||
};
|
||||
|
||||
@ -1294,12 +1294,12 @@ struct remote_storage_pool_refresh_args {
|
||||
unsigned flags;
|
||||
};
|
||||
|
||||
struct remote_storage_pool_dump_xml_args {
|
||||
struct remote_storage_pool_get_xml_desc_args {
|
||||
remote_nonnull_storage_pool pool;
|
||||
unsigned flags;
|
||||
};
|
||||
|
||||
struct remote_storage_pool_dump_xml_ret {
|
||||
struct remote_storage_pool_get_xml_desc_ret {
|
||||
remote_nonnull_string xml;
|
||||
};
|
||||
|
||||
@ -1404,12 +1404,12 @@ struct remote_storage_vol_wipe_args {
|
||||
unsigned flags;
|
||||
};
|
||||
|
||||
struct remote_storage_vol_dump_xml_args {
|
||||
struct remote_storage_vol_get_xml_desc_args {
|
||||
remote_nonnull_storage_vol vol;
|
||||
unsigned flags;
|
||||
};
|
||||
|
||||
struct remote_storage_vol_dump_xml_ret {
|
||||
struct remote_storage_vol_get_xml_desc_ret {
|
||||
remote_nonnull_string xml;
|
||||
};
|
||||
|
||||
@ -1460,12 +1460,12 @@ struct remote_node_device_lookup_by_name_ret {
|
||||
remote_nonnull_node_device dev;
|
||||
};
|
||||
|
||||
struct remote_node_device_dump_xml_args {
|
||||
struct remote_node_device_get_xml_desc_args {
|
||||
remote_nonnull_string name;
|
||||
unsigned flags;
|
||||
};
|
||||
|
||||
struct remote_node_device_dump_xml_ret {
|
||||
struct remote_node_device_get_xml_desc_ret {
|
||||
remote_nonnull_string xml;
|
||||
};
|
||||
|
||||
@ -1859,12 +1859,12 @@ struct remote_domain_snapshot_create_xml_ret {
|
||||
remote_nonnull_domain_snapshot snap;
|
||||
};
|
||||
|
||||
struct remote_domain_snapshot_dump_xml_args {
|
||||
struct remote_domain_snapshot_get_xml_desc_args {
|
||||
remote_nonnull_domain_snapshot snap;
|
||||
int flags;
|
||||
};
|
||||
|
||||
struct remote_domain_snapshot_dump_xml_ret {
|
||||
struct remote_domain_snapshot_get_xml_desc_ret {
|
||||
remote_nonnull_string xml;
|
||||
};
|
||||
|
||||
@ -1967,7 +1967,7 @@ enum remote_procedure {
|
||||
REMOTE_PROC_DOMAIN_DEFINE_XML = 11,
|
||||
REMOTE_PROC_DOMAIN_DESTROY = 12,
|
||||
REMOTE_PROC_DOMAIN_DETACH_DEVICE = 13,
|
||||
REMOTE_PROC_DOMAIN_DUMP_XML = 14,
|
||||
REMOTE_PROC_DOMAIN_GET_XML_DESC = 14,
|
||||
REMOTE_PROC_DOMAIN_GET_AUTOSTART = 15,
|
||||
REMOTE_PROC_DOMAIN_GET_INFO = 16,
|
||||
REMOTE_PROC_DOMAIN_GET_MAX_MEMORY = 17,
|
||||
@ -1999,7 +1999,7 @@ enum remote_procedure {
|
||||
|
||||
REMOTE_PROC_NETWORK_DEFINE_XML = 41,
|
||||
REMOTE_PROC_NETWORK_DESTROY = 42,
|
||||
REMOTE_PROC_NETWORK_DUMP_XML = 43,
|
||||
REMOTE_PROC_NETWORK_GET_XML_DESC = 43,
|
||||
REMOTE_PROC_NETWORK_GET_AUTOSTART = 44,
|
||||
REMOTE_PROC_NETWORK_GET_BRIDGE_NAME = 45,
|
||||
REMOTE_PROC_NETWORK_LOOKUP_BY_NAME = 46,
|
||||
@ -2048,7 +2048,7 @@ enum remote_procedure {
|
||||
REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_UUID = 85,
|
||||
REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_VOLUME = 86,
|
||||
REMOTE_PROC_STORAGE_POOL_GET_INFO = 87,
|
||||
REMOTE_PROC_STORAGE_POOL_DUMP_XML = 88,
|
||||
REMOTE_PROC_STORAGE_POOL_GET_XML_DESC = 88,
|
||||
REMOTE_PROC_STORAGE_POOL_GET_AUTOSTART = 89,
|
||||
REMOTE_PROC_STORAGE_POOL_SET_AUTOSTART = 90,
|
||||
|
||||
@ -2060,7 +2060,7 @@ enum remote_procedure {
|
||||
REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_KEY = 96,
|
||||
REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_PATH = 97,
|
||||
REMOTE_PROC_STORAGE_VOL_GET_INFO = 98,
|
||||
REMOTE_PROC_STORAGE_VOL_DUMP_XML = 99,
|
||||
REMOTE_PROC_STORAGE_VOL_GET_XML_DESC = 99,
|
||||
REMOTE_PROC_STORAGE_VOL_GET_PATH = 100,
|
||||
|
||||
REMOTE_PROC_NODE_GET_CELLS_FREE_MEMORY = 101,
|
||||
@ -2077,7 +2077,7 @@ enum remote_procedure {
|
||||
REMOTE_PROC_NODE_NUM_OF_DEVICES = 111,
|
||||
REMOTE_PROC_NODE_LIST_DEVICES = 112,
|
||||
REMOTE_PROC_NODE_DEVICE_LOOKUP_BY_NAME = 113,
|
||||
REMOTE_PROC_NODE_DEVICE_DUMP_XML = 114,
|
||||
REMOTE_PROC_NODE_DEVICE_GET_XML_DESC = 114,
|
||||
REMOTE_PROC_NODE_DEVICE_GET_PARENT = 115,
|
||||
REMOTE_PROC_NODE_DEVICE_NUM_OF_CAPS = 116,
|
||||
REMOTE_PROC_NODE_DEVICE_LIST_CAPS = 117,
|
||||
@ -2156,7 +2156,7 @@ enum remote_procedure {
|
||||
REMOTE_PROC_DOMAIN_HAS_MANAGED_SAVE_IMAGE = 183,
|
||||
REMOTE_PROC_DOMAIN_MANAGED_SAVE_REMOVE = 184,
|
||||
REMOTE_PROC_DOMAIN_SNAPSHOT_CREATE_XML = 185,
|
||||
REMOTE_PROC_DOMAIN_SNAPSHOT_DUMP_XML = 186,
|
||||
REMOTE_PROC_DOMAIN_SNAPSHOT_GET_XML_DESC = 186,
|
||||
REMOTE_PROC_DOMAIN_SNAPSHOT_NUM = 187,
|
||||
REMOTE_PROC_DOMAIN_SNAPSHOT_LIST_NAMES = 188,
|
||||
REMOTE_PROC_DOMAIN_SNAPSHOT_LOOKUP_BY_NAME = 189,
|
||||
|
@ -403,11 +403,11 @@ struct remote_domain_core_dump_args {
|
||||
remote_nonnull_string to;
|
||||
int flags;
|
||||
};
|
||||
struct remote_domain_dump_xml_args {
|
||||
struct remote_domain_get_xml_desc_args {
|
||||
remote_nonnull_domain dom;
|
||||
int flags;
|
||||
};
|
||||
struct remote_domain_dump_xml_ret {
|
||||
struct remote_domain_get_xml_desc_ret {
|
||||
remote_nonnull_string xml;
|
||||
};
|
||||
struct remote_domain_migrate_prepare_args {
|
||||
@ -663,11 +663,11 @@ struct remote_network_create_args {
|
||||
struct remote_network_destroy_args {
|
||||
remote_nonnull_network net;
|
||||
};
|
||||
struct remote_network_dump_xml_args {
|
||||
struct remote_network_get_xml_desc_args {
|
||||
remote_nonnull_network net;
|
||||
int flags;
|
||||
};
|
||||
struct remote_network_dump_xml_ret {
|
||||
struct remote_network_get_xml_desc_ret {
|
||||
remote_nonnull_string xml;
|
||||
};
|
||||
struct remote_network_get_bridge_name_args {
|
||||
@ -916,11 +916,11 @@ struct remote_storage_pool_refresh_args {
|
||||
remote_nonnull_storage_pool pool;
|
||||
u_int flags;
|
||||
};
|
||||
struct remote_storage_pool_dump_xml_args {
|
||||
struct remote_storage_pool_get_xml_desc_args {
|
||||
remote_nonnull_storage_pool pool;
|
||||
u_int flags;
|
||||
};
|
||||
struct remote_storage_pool_dump_xml_ret {
|
||||
struct remote_storage_pool_get_xml_desc_ret {
|
||||
remote_nonnull_string xml;
|
||||
};
|
||||
struct remote_storage_pool_get_info_args {
|
||||
@ -1002,11 +1002,11 @@ struct remote_storage_vol_wipe_args {
|
||||
remote_nonnull_storage_vol vol;
|
||||
u_int flags;
|
||||
};
|
||||
struct remote_storage_vol_dump_xml_args {
|
||||
struct remote_storage_vol_get_xml_desc_args {
|
||||
remote_nonnull_storage_vol vol;
|
||||
u_int flags;
|
||||
};
|
||||
struct remote_storage_vol_dump_xml_ret {
|
||||
struct remote_storage_vol_get_xml_desc_ret {
|
||||
remote_nonnull_string xml;
|
||||
};
|
||||
struct remote_storage_vol_get_info_args {
|
||||
@ -1047,11 +1047,11 @@ struct remote_node_device_lookup_by_name_args {
|
||||
struct remote_node_device_lookup_by_name_ret {
|
||||
remote_nonnull_node_device dev;
|
||||
};
|
||||
struct remote_node_device_dump_xml_args {
|
||||
struct remote_node_device_get_xml_desc_args {
|
||||
remote_nonnull_string name;
|
||||
u_int flags;
|
||||
};
|
||||
struct remote_node_device_dump_xml_ret {
|
||||
struct remote_node_device_get_xml_desc_ret {
|
||||
remote_nonnull_string xml;
|
||||
};
|
||||
struct remote_node_device_get_parent_args {
|
||||
@ -1359,11 +1359,11 @@ struct remote_domain_snapshot_create_xml_args {
|
||||
struct remote_domain_snapshot_create_xml_ret {
|
||||
remote_nonnull_domain_snapshot snap;
|
||||
};
|
||||
struct remote_domain_snapshot_dump_xml_args {
|
||||
struct remote_domain_snapshot_get_xml_desc_args {
|
||||
remote_nonnull_domain_snapshot snap;
|
||||
int flags;
|
||||
};
|
||||
struct remote_domain_snapshot_dump_xml_ret {
|
||||
struct remote_domain_snapshot_get_xml_desc_ret {
|
||||
remote_nonnull_string xml;
|
||||
};
|
||||
struct remote_domain_snapshot_num_args {
|
||||
|
@ -939,7 +939,7 @@ cleanup:
|
||||
}
|
||||
|
||||
static char *
|
||||
storagePoolDumpXML(virStoragePoolPtr obj,
|
||||
storagePoolGetXMLDesc(virStoragePoolPtr obj,
|
||||
unsigned int flags ATTRIBUTE_UNUSED) {
|
||||
virStorageDriverStatePtr driver = obj->conn->storagePrivateData;
|
||||
virStoragePoolObjPtr pool;
|
||||
@ -2122,7 +2122,7 @@ static virStorageDriver storageDriver = {
|
||||
.poolDelete = storagePoolDelete,
|
||||
.poolRefresh = storagePoolRefresh,
|
||||
.poolGetInfo = storagePoolGetInfo,
|
||||
.poolGetXMLDesc = storagePoolDumpXML,
|
||||
.poolGetXMLDesc = storagePoolGetXMLDesc,
|
||||
.poolGetAutostart = storagePoolGetAutostart,
|
||||
.poolSetAutostart = storagePoolSetAutostart,
|
||||
.poolNumOfVolumes = storagePoolNumVolumes,
|
||||
|
@ -2336,7 +2336,7 @@ cleanup:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static char *testDomainDumpXML(virDomainPtr domain, int flags)
|
||||
static char *testDomainGetXMLDesc(virDomainPtr domain, int flags)
|
||||
{
|
||||
testConnPtr privconn = domain->conn->privateData;
|
||||
virDomainDefPtr def;
|
||||
@ -3137,7 +3137,7 @@ cleanup:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static char *testNetworkDumpXML(virNetworkPtr network, int flags ATTRIBUTE_UNUSED) {
|
||||
static char *testNetworkGetXMLDesc(virNetworkPtr network, int flags ATTRIBUTE_UNUSED) {
|
||||
testConnPtr privconn = network->conn->privateData;
|
||||
virNetworkObjPtr privnet;
|
||||
char *ret = NULL;
|
||||
@ -4162,7 +4162,7 @@ cleanup:
|
||||
}
|
||||
|
||||
static char *
|
||||
testStoragePoolDumpXML(virStoragePoolPtr pool,
|
||||
testStoragePoolGetXMLDesc(virStoragePoolPtr pool,
|
||||
unsigned int flags ATTRIBUTE_UNUSED) {
|
||||
testConnPtr privconn = pool->conn->privateData;
|
||||
virStoragePoolObjPtr privpool;
|
||||
@ -4914,7 +4914,7 @@ cleanup:
|
||||
}
|
||||
|
||||
static char *
|
||||
testNodeDeviceDumpXML(virNodeDevicePtr dev,
|
||||
testNodeDeviceGetXMLDesc(virNodeDevicePtr dev,
|
||||
unsigned int flags ATTRIBUTE_UNUSED)
|
||||
{
|
||||
testConnPtr driver = dev->conn->privateData;
|
||||
@ -5382,7 +5382,7 @@ static virDriver testDriver = {
|
||||
testDomainGetMaxVcpus, /* domainGetMaxVcpus */
|
||||
NULL, /* domainGetSecurityLabel */
|
||||
NULL, /* nodeGetSecurityModel */
|
||||
testDomainDumpXML, /* domainDumpXML */
|
||||
testDomainGetXMLDesc, /* domainGetXMLDesc */
|
||||
NULL, /* domainXMLFromNative */
|
||||
NULL, /* domainXMLToNative */
|
||||
testListDefinedDomains, /* listDefinedDomains */
|
||||
@ -5437,7 +5437,7 @@ static virDriver testDriver = {
|
||||
NULL, /* domainHasManagedSaveImage */
|
||||
NULL, /* domainManagedSaveRemove */
|
||||
NULL, /* domainSnapshotCreateXML */
|
||||
NULL, /* domainSnapshotDumpXML */
|
||||
NULL, /* domainSnapshotGetXMLDesc */
|
||||
NULL, /* domainSnapshotNum */
|
||||
NULL, /* domainSnapshotListNames */
|
||||
NULL, /* domainSnapshotLookupByName */
|
||||
@ -5465,7 +5465,7 @@ static virNetworkDriver testNetworkDriver = {
|
||||
testNetworkUndefine, /* networkUndefine */
|
||||
testNetworkStart, /* networkCreate */
|
||||
testNetworkDestroy, /* networkDestroy */
|
||||
testNetworkDumpXML, /* networkDumpXML */
|
||||
testNetworkGetXMLDesc, /* networkGetXMLDesc */
|
||||
testNetworkGetBridgeName, /* networkGetBridgeName */
|
||||
testNetworkGetAutostart, /* networkGetAutostart */
|
||||
testNetworkSetAutostart, /* networkSetAutostart */
|
||||
@ -5514,7 +5514,7 @@ static virStorageDriver testStorageDriver = {
|
||||
.poolDelete = testStoragePoolDelete,
|
||||
.poolRefresh = testStoragePoolRefresh,
|
||||
.poolGetInfo = testStoragePoolGetInfo,
|
||||
.poolGetXMLDesc = testStoragePoolDumpXML,
|
||||
.poolGetXMLDesc = testStoragePoolGetXMLDesc,
|
||||
.poolGetAutostart = testStoragePoolGetAutostart,
|
||||
.poolSetAutostart = testStoragePoolSetAutostart,
|
||||
.poolNumOfVolumes = testStoragePoolNumVolumes,
|
||||
@ -5541,7 +5541,7 @@ static virDeviceMonitor testDevMonitor = {
|
||||
.numOfDevices = testNodeNumOfDevices,
|
||||
.listDevices = testNodeListDevices,
|
||||
.deviceLookupByName = testNodeDeviceLookupByName,
|
||||
.deviceDumpXML = testNodeDeviceDumpXML,
|
||||
.deviceGetXMLDesc = testNodeDeviceGetXMLDesc,
|
||||
.deviceGetParent = testNodeDeviceGetParent,
|
||||
.deviceNumOfCaps = testNodeDeviceNumOfCaps,
|
||||
.deviceListCaps = testNodeDeviceListCaps,
|
||||
|
@ -132,7 +132,7 @@ umlConnectTapDevice(virConnectPtr conn,
|
||||
VIR_FREE(net->ifname);
|
||||
if (!(net->ifname = strdup("vnet%d")))
|
||||
goto no_memory;
|
||||
/* avoid exposing vnet%d in dumpxml or error outputs */
|
||||
/* avoid exposing vnet%d in getXMLDesc or error outputs */
|
||||
template_ifname = 1;
|
||||
}
|
||||
|
||||
|
@ -1522,7 +1522,7 @@ cleanup:
|
||||
}
|
||||
|
||||
|
||||
static char *umlDomainDumpXML(virDomainPtr dom,
|
||||
static char *umlDomainGetXMLDesc(virDomainPtr dom,
|
||||
int flags ATTRIBUTE_UNUSED) {
|
||||
struct uml_driver *driver = dom->conn->privateData;
|
||||
virDomainObjPtr vm;
|
||||
@ -2188,7 +2188,7 @@ static virDriver umlDriver = {
|
||||
NULL, /* domainGetMaxVcpus */
|
||||
NULL, /* domainGetSecurityLabel */
|
||||
NULL, /* nodeGetSecurityModel */
|
||||
umlDomainDumpXML, /* domainDumpXML */
|
||||
umlDomainGetXMLDesc, /* domainGetXMLDesc */
|
||||
NULL, /* domainXMLFromNative */
|
||||
NULL, /* domainXMLToNative */
|
||||
umlListDefinedDomains, /* listDefinedDomains */
|
||||
@ -2243,7 +2243,7 @@ static virDriver umlDriver = {
|
||||
NULL, /* domainHasManagedSaveImage */
|
||||
NULL, /* domainManagedSaveRemove */
|
||||
NULL, /* domainSnapshotCreateXML */
|
||||
NULL, /* domainSnapshotDumpXML */
|
||||
NULL, /* domainSnapshotGetXMLDesc */
|
||||
NULL, /* domainSnapshotNum */
|
||||
NULL, /* domainSnapshotListNames */
|
||||
NULL, /* domainSnapshotLookupByName */
|
||||
|
@ -2066,7 +2066,7 @@ vboxDomainGetMaxVcpus(virDomainPtr dom)
|
||||
VIR_DOMAIN_VCPU_MAXIMUM));
|
||||
}
|
||||
|
||||
static char *vboxDomainDumpXML(virDomainPtr dom, int flags) {
|
||||
static char *vboxDomainGetXMLDesc(virDomainPtr dom, int flags) {
|
||||
VBOX_OBJECT_CHECK(dom->conn, char *, NULL);
|
||||
virDomainDefPtr def = NULL;
|
||||
IMachine *machine = NULL;
|
||||
@ -5638,7 +5638,7 @@ cleanup:
|
||||
}
|
||||
|
||||
static char *
|
||||
vboxDomainSnapshotDumpXML(virDomainSnapshotPtr snapshot,
|
||||
vboxDomainSnapshotGetXMLDesc(virDomainSnapshotPtr snapshot,
|
||||
unsigned int flags)
|
||||
{
|
||||
virDomainPtr dom = snapshot->domain;
|
||||
@ -7510,7 +7510,7 @@ static int vboxNetworkDestroy(virNetworkPtr network) {
|
||||
return vboxNetworkUndefineDestroy(network, false);
|
||||
}
|
||||
|
||||
static char *vboxNetworkDumpXML(virNetworkPtr network, int flags ATTRIBUTE_UNUSED) {
|
||||
static char *vboxNetworkGetXMLDesc(virNetworkPtr network, int flags ATTRIBUTE_UNUSED) {
|
||||
VBOX_OBJECT_HOST_CHECK(network->conn, char *, NULL);
|
||||
virNetworkDefPtr def = NULL;
|
||||
virNetworkIpDefPtr ipdef = NULL;
|
||||
@ -8577,7 +8577,7 @@ virDriver NAME(Driver) = {
|
||||
vboxDomainGetMaxVcpus, /* domainGetMaxVcpus */
|
||||
NULL, /* domainGetSecurityLabel */
|
||||
NULL, /* nodeGetSecurityModel */
|
||||
vboxDomainDumpXML, /* domainDumpXML */
|
||||
vboxDomainGetXMLDesc, /* domainGetXMLDesc */
|
||||
NULL, /* domainXMLFromNative */
|
||||
NULL, /* domainXMLToNative */
|
||||
vboxListDefinedDomains, /* listDefinedDomains */
|
||||
@ -8642,7 +8642,7 @@ virDriver NAME(Driver) = {
|
||||
NULL, /* domainHasManagedSaveImage */
|
||||
NULL, /* domainManagedSaveRemove */
|
||||
vboxDomainSnapshotCreateXML, /* domainSnapshotCreateXML */
|
||||
vboxDomainSnapshotDumpXML, /* domainSnapshotDumpXML */
|
||||
vboxDomainSnapshotGetXMLDesc, /* domainSnapshotGetXMLDesc */
|
||||
vboxDomainSnapshotNum, /* domainSnapshotNum */
|
||||
vboxDomainSnapshotListNames, /* domainSnapshotListNames */
|
||||
vboxDomainSnapshotLookupByName, /* domainSnapshotLookupByName */
|
||||
@ -8670,7 +8670,7 @@ virNetworkDriver NAME(NetworkDriver) = {
|
||||
.networkUndefine = vboxNetworkUndefine,
|
||||
.networkCreate = vboxNetworkCreate,
|
||||
.networkDestroy = vboxNetworkDestroy,
|
||||
.networkDumpXML = vboxNetworkDumpXML,
|
||||
.networkGetXMLDesc = vboxNetworkGetXMLDesc,
|
||||
.networkGetBridgeName = NULL,
|
||||
.networkGetAutostart = NULL,
|
||||
.networkSetAutostart = NULL
|
||||
|
@ -789,7 +789,7 @@ vmwareDomainIsPersistent(virDomainPtr dom)
|
||||
|
||||
|
||||
static char *
|
||||
vmwareDomainDumpXML(virDomainPtr dom, int flags)
|
||||
vmwareDomainGetXMLDesc(virDomainPtr dom, int flags)
|
||||
{
|
||||
struct vmware_driver *driver = dom->conn->privateData;
|
||||
virDomainObjPtr vm;
|
||||
@ -942,7 +942,7 @@ static virDriver vmwareDriver = {
|
||||
NULL, /* domainGetMaxVcpus */
|
||||
NULL, /* domainGetSecurityLabel */
|
||||
NULL, /* nodeGetSecurityModel */
|
||||
vmwareDomainDumpXML, /* domainDumpXML */
|
||||
vmwareDomainGetXMLDesc, /* domainGetXMLDesc */
|
||||
NULL, /* domainXmlFromNative */
|
||||
NULL, /* domainXmlToNative */
|
||||
vmwareListDefinedDomains, /* listDefinedDomains */
|
||||
@ -997,7 +997,7 @@ static virDriver vmwareDriver = {
|
||||
NULL, /* domainHasManagedSaveImage */
|
||||
NULL, /* domainManagedSaveRemove */
|
||||
NULL, /* domainSnapshotCreateXML */
|
||||
NULL, /* domainSnapshotDumpXML */
|
||||
NULL, /* domainSnapshotGetXMLDesc */
|
||||
NULL, /* domainSnapshotNum */
|
||||
NULL, /* domainSnapshotListNames */
|
||||
NULL, /* domainSnapshotLookupByName */
|
||||
|
@ -1192,20 +1192,20 @@ xenUnifiedDomainGetMaxVcpus (virDomainPtr dom)
|
||||
}
|
||||
|
||||
static char *
|
||||
xenUnifiedDomainDumpXML (virDomainPtr dom, int flags)
|
||||
xenUnifiedDomainGetXMLDesc(virDomainPtr dom, int flags)
|
||||
{
|
||||
GET_PRIVATE(dom->conn);
|
||||
|
||||
if (dom->id == -1 && priv->xendConfigVersion < 3 ) {
|
||||
if (priv->opened[XEN_UNIFIED_XM_OFFSET])
|
||||
return xenXMDomainDumpXML(dom, flags);
|
||||
return xenXMDomainGetXMLDesc(dom, flags);
|
||||
} else {
|
||||
if (priv->opened[XEN_UNIFIED_XEND_OFFSET]) {
|
||||
char *cpus, *res;
|
||||
xenUnifiedLock(priv);
|
||||
cpus = xenDomainUsedCpus(dom);
|
||||
xenUnifiedUnlock(priv);
|
||||
res = xenDaemonDomainDumpXML(dom, flags, cpus);
|
||||
res = xenDaemonDomainGetXMLDesc(dom, flags, cpus);
|
||||
VIR_FREE(cpus);
|
||||
return(res);
|
||||
}
|
||||
@ -1374,7 +1374,7 @@ xenUnifiedDomainMigrateFinish (virConnectPtr dconn,
|
||||
}
|
||||
|
||||
if (flags & VIR_MIGRATE_PERSIST_DEST) {
|
||||
domain_xml = xenDaemonDomainDumpXML (dom, 0, NULL);
|
||||
domain_xml = xenDaemonDomainGetXMLDesc(dom, 0, NULL);
|
||||
if (! domain_xml) {
|
||||
xenUnifiedError(VIR_ERR_MIGRATE_PERSIST_FAILED,
|
||||
"%s", _("failed to get XML representation of migrated domain"));
|
||||
@ -2143,7 +2143,7 @@ static virDriver xenUnifiedDriver = {
|
||||
xenUnifiedDomainGetMaxVcpus, /* domainGetMaxVcpus */
|
||||
NULL, /* domainGetSecurityLabel */
|
||||
NULL, /* nodeGetSecurityModel */
|
||||
xenUnifiedDomainDumpXML, /* domainDumpXML */
|
||||
xenUnifiedDomainGetXMLDesc, /* domainGetXMLDesc */
|
||||
xenUnifiedDomainXMLFromNative, /* domainXMLFromNative */
|
||||
xenUnifiedDomainXMLToNative, /* domainXMLToNative */
|
||||
xenUnifiedListDefinedDomains, /* listDefinedDomains */
|
||||
@ -2198,7 +2198,7 @@ static virDriver xenUnifiedDriver = {
|
||||
NULL, /* domainHasManagedSaveImage */
|
||||
NULL, /* domainManagedSaveRemove */
|
||||
NULL, /* domainSnapshotCreateXML */
|
||||
NULL, /* domainSnapshotDumpXML */
|
||||
NULL, /* domainSnapshotGetXMLDesc */
|
||||
NULL, /* domainSnapshotNum */
|
||||
NULL, /* domainSnapshotListNames */
|
||||
NULL, /* domainSnapshotLookupByName */
|
||||
|
@ -1813,7 +1813,7 @@ cleanup:
|
||||
|
||||
|
||||
/**
|
||||
* xenDaemonDomainDumpXML:
|
||||
* xenDaemonDomainGetXMLDesc:
|
||||
* @domain: a domain object
|
||||
* @flags: potential dump flags
|
||||
* @cpus: list of cpu the domain is pinned to.
|
||||
@ -1824,7 +1824,7 @@ cleanup:
|
||||
* the caller must free() the returned value.
|
||||
*/
|
||||
char *
|
||||
xenDaemonDomainDumpXML(virDomainPtr domain, int flags, const char *cpus)
|
||||
xenDaemonDomainGetXMLDesc(virDomainPtr domain, int flags, const char *cpus)
|
||||
{
|
||||
xenUnifiedPrivatePtr priv;
|
||||
virDomainDefPtr def;
|
||||
|
@ -110,7 +110,7 @@ int xenDaemonDomainRestore(virConnectPtr conn, const char *filename);
|
||||
int xenDaemonDomainSetMemory(virDomainPtr domain, unsigned long memory);
|
||||
int xenDaemonDomainSetMaxMemory(virDomainPtr domain, unsigned long memory);
|
||||
int xenDaemonDomainGetInfo(virDomainPtr domain, virDomainInfoPtr info);
|
||||
char *xenDaemonDomainDumpXML(virDomainPtr domain, int flags, const char *cpus);
|
||||
char *xenDaemonDomainGetXMLDesc(virDomainPtr domain, int flags, const char *cpus);
|
||||
unsigned long xenDaemonDomainGetMaxMemory(virDomainPtr domain);
|
||||
char **xenDaemonListDomainsOld(virConnectPtr xend);
|
||||
|
||||
|
@ -513,7 +513,7 @@ error:
|
||||
* Turn a config record into a lump of XML describing the
|
||||
* domain, suitable for later feeding for virDomainCreateXML
|
||||
*/
|
||||
char *xenXMDomainDumpXML(virDomainPtr domain, int flags) {
|
||||
char *xenXMDomainGetXMLDesc(virDomainPtr domain, int flags) {
|
||||
xenUnifiedPrivatePtr priv;
|
||||
const char *filename;
|
||||
xenXMConfCachePtr entry;
|
||||
|
@ -40,7 +40,7 @@ virDrvOpenStatus xenXMOpen(virConnectPtr conn, virConnectAuthPtr auth, int flags
|
||||
int xenXMClose(virConnectPtr conn);
|
||||
const char *xenXMGetType(virConnectPtr conn);
|
||||
int xenXMDomainGetInfo(virDomainPtr domain, virDomainInfoPtr info);
|
||||
char *xenXMDomainDumpXML(virDomainPtr domain, int flags);
|
||||
char *xenXMDomainGetXMLDesc(virDomainPtr domain, int flags);
|
||||
int xenXMDomainSetMemory(virDomainPtr domain, unsigned long memory);
|
||||
int xenXMDomainSetMaxMemory(virDomainPtr domain, unsigned long memory);
|
||||
unsigned long xenXMDomainGetMaxMemory(virDomainPtr domain);
|
||||
|
@ -1224,13 +1224,13 @@ xenapiDomainGetMaxVcpus (virDomainPtr dom)
|
||||
}
|
||||
|
||||
/*
|
||||
* xenapiDomainDumpXML
|
||||
* xenapiDomainGetXMLDesc
|
||||
*
|
||||
*
|
||||
* Returns XML string of the domain configuration on success or -1 in case of error
|
||||
*/
|
||||
static char *
|
||||
xenapiDomainDumpXML (virDomainPtr dom, int flags ATTRIBUTE_UNUSED)
|
||||
xenapiDomainGetXMLDesc(virDomainPtr dom, int flags ATTRIBUTE_UNUSED)
|
||||
{
|
||||
xen_vm vm=NULL;
|
||||
xen_vm_set *vms;
|
||||
@ -1824,7 +1824,7 @@ static virDriver xenapiDriver = {
|
||||
xenapiDomainGetMaxVcpus, /* domainGetMaxVcpus */
|
||||
NULL, /* domainGetSecurityLabel */
|
||||
NULL, /* nodeGetSecurityModel */
|
||||
xenapiDomainDumpXML, /* domainDumpXML */
|
||||
xenapiDomainGetXMLDesc, /* domainGetXMLDesc */
|
||||
NULL, /* domainXmlFromNative */
|
||||
NULL, /* domainXmlToNative */
|
||||
xenapiListDefinedDomains, /* listDefinedDomains */
|
||||
@ -1879,7 +1879,7 @@ static virDriver xenapiDriver = {
|
||||
NULL, /* domainHasManagedSaveImage */
|
||||
NULL, /* domainManagedSaveRemove */
|
||||
NULL, /* domainSnapshotCreateXML */
|
||||
NULL, /* domainSnapshotDumpXML */
|
||||
NULL, /* domainSnapshotGetXMLDesc */
|
||||
NULL, /* domainSnapshotNum */
|
||||
NULL, /* domainSnapshotListNames */
|
||||
NULL, /* domainSnapshotLookupByName */
|
||||
|
Loading…
Reference in New Issue
Block a user