From 64ce43f82c0b5c7aeb712266b4e92debb8031b6a Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Thu, 21 Jul 2011 09:54:28 +0200 Subject: [PATCH] destroy: Implement internal API for uml driver --- src/uml/uml_driver.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/uml/uml_driver.c b/src/uml/uml_driver.c index e1eedd4f38..6d04120156 100644 --- a/src/uml/uml_driver.c +++ b/src/uml/uml_driver.c @@ -1417,12 +1417,17 @@ cleanup: } -static int umlDomainDestroy(virDomainPtr dom) { +static int +umlDomainDestroyFlags(virDomainPtr dom, + unsigned int flags) +{ struct uml_driver *driver = dom->conn->privateData; virDomainObjPtr vm; virDomainEventPtr event = NULL; int ret = -1; + virCheckFlags(0, -1); + umlDriverLock(driver); vm = virDomainFindByID(&driver->domains, dom->id); if (!vm) { @@ -1453,6 +1458,12 @@ cleanup: } +static int umlDomainDestroy(virDomainPtr dom) +{ + return umlDomainDestroyFlags(dom, 0); +} + + static char *umlDomainGetOSType(virDomainPtr dom) { struct uml_driver *driver = dom->conn->privateData; virDomainObjPtr vm; @@ -2423,6 +2434,7 @@ static virDriver umlDriver = { .domainLookupByName = umlDomainLookupByName, /* 0.5.0 */ .domainShutdown = umlDomainShutdown, /* 0.5.0 */ .domainDestroy = umlDomainDestroy, /* 0.5.0 */ + .domainDestroyFlags = umlDomainDestroyFlags, /* 0.9.4 */ .domainGetOSType = umlDomainGetOSType, /* 0.5.0 */ .domainGetMaxMemory = umlDomainGetMaxMemory, /* 0.5.0 */ .domainSetMaxMemory = umlDomainSetMaxMemory, /* 0.5.0 */ -- GitLab