diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2011-07-21 10:01:44 +0200 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2011-07-21 20:41:27 +0200 |
commit | 73838d331f7fe3ae395f9bc53015a12e993b6c48 (patch) | |
tree | 4ccd1d6a9e9b9b6a4942f458de05741f17da1c98 /src/vmware | |
parent | destroy: Implement internal API for vbox driver (diff) | |
download | libvirt-73838d331f7fe3ae395f9bc53015a12e993b6c48.tar.gz libvirt-73838d331f7fe3ae395f9bc53015a12e993b6c48.tar.bz2 libvirt-73838d331f7fe3ae395f9bc53015a12e993b6c48.zip |
destroy: Implement internal API for vmware driver
Diffstat (limited to 'src/vmware')
-rw-r--r-- | src/vmware/vmware_driver.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/vmware/vmware_driver.c b/src/vmware/vmware_driver.c index 71f3d2284..5c63239c4 100644 --- a/src/vmware/vmware_driver.c +++ b/src/vmware/vmware_driver.c @@ -312,12 +312,15 @@ vmwareDomainDefineXML(virConnectPtr conn, const char *xml) } static int -vmwareDomainShutdown(virDomainPtr dom) +vmwareDomainShutdownFlags(virDomainPtr dom, + unsigned int flags) { struct vmware_driver *driver = dom->conn->privateData; virDomainObjPtr vm; int ret = -1; + virCheckFlags(0, -1); + vmwareDriverLock(driver); vm = virDomainFindByUUID(&driver->domains, dom->uuid); @@ -351,6 +354,12 @@ vmwareDomainShutdown(virDomainPtr dom) } static int +vmwareDomainShutdown(virDomainPtr dom) +{ + return vmwareDomainShutdownFlags(dom, 0); +} + +static int vmwareDomainSuspend(virDomainPtr dom) { struct vmware_driver *driver = dom->conn->privateData; @@ -968,6 +977,7 @@ static virDriver vmwareDriver = { .domainShutdown = vmwareDomainShutdown, /* 0.8.7 */ .domainReboot = vmwareDomainReboot, /* 0.8.7 */ .domainDestroy = vmwareDomainShutdown, /* 0.8.7 */ + .domainDestroyFlags = vmwareDomainShutdownFlags, /* 0.9.4 */ .domainGetOSType = vmwareGetOSType, /* 0.8.7 */ .domainGetInfo = vmwareDomainGetInfo, /* 0.8.7 */ .domainGetState = vmwareDomainGetState, /* 0.9.2 */ |