1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

destroy: Implement internal API for ESX driver

This commit is contained in:
Michal Privoznik 2011-07-20 18:45:21 +02:00
parent 427eaf13e2
commit 3959fe300e

View File

@ -1937,7 +1937,8 @@ esxDomainReboot(virDomainPtr domain, unsigned int flags)
static int static int
esxDomainDestroy(virDomainPtr domain) esxDomainDestroyFlags(virDomainPtr domain,
unsigned int flags)
{ {
int result = -1; int result = -1;
esxPrivate *priv = domain->conn->privateData; esxPrivate *priv = domain->conn->privateData;
@ -1949,6 +1950,8 @@ esxDomainDestroy(virDomainPtr domain)
esxVI_TaskInfoState taskInfoState; esxVI_TaskInfoState taskInfoState;
char *taskInfoErrorMessage = NULL; char *taskInfoErrorMessage = NULL;
virCheckFlags(0, -1);
if (priv->vCenter != NULL) { if (priv->vCenter != NULL) {
ctx = priv->vCenter; ctx = priv->vCenter;
} else { } else {
@ -2001,6 +2004,12 @@ esxDomainDestroy(virDomainPtr domain)
} }
static int
esxDomainDestroy(virDomainPtr dom)
{
return esxDomainDestroyFlags(dom, 0);
}
static char * static char *
esxDomainGetOSType(virDomainPtr domain ATTRIBUTE_UNUSED) esxDomainGetOSType(virDomainPtr domain ATTRIBUTE_UNUSED)
@ -4734,6 +4743,7 @@ static virDriver esxDriver = {
.domainShutdown = esxDomainShutdown, /* 0.7.0 */ .domainShutdown = esxDomainShutdown, /* 0.7.0 */
.domainReboot = esxDomainReboot, /* 0.7.0 */ .domainReboot = esxDomainReboot, /* 0.7.0 */
.domainDestroy = esxDomainDestroy, /* 0.7.0 */ .domainDestroy = esxDomainDestroy, /* 0.7.0 */
.domainDestroyFlags = esxDomainDestroyFlags, /* 0.9.4 */
.domainGetOSType = esxDomainGetOSType, /* 0.7.0 */ .domainGetOSType = esxDomainGetOSType, /* 0.7.0 */
.domainGetMaxMemory = esxDomainGetMaxMemory, /* 0.7.0 */ .domainGetMaxMemory = esxDomainGetMaxMemory, /* 0.7.0 */
.domainSetMaxMemory = esxDomainSetMaxMemory, /* 0.7.0 */ .domainSetMaxMemory = esxDomainSetMaxMemory, /* 0.7.0 */