---
src/qemu/qemu_driver.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 6626057..1d4c9ff 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -1452,12 +1452,16 @@ cleanup:
}
-static int qemuDomainShutdown(virDomainPtr dom) {
+static int
+qemuDomainShutdownFlags(virDomainPtr dom,
+ unsigned int flags) {
struct qemud_driver *driver = dom->conn->privateData;
virDomainObjPtr vm;
int ret = -1;
qemuDomainObjPrivatePtr priv;
+ virCheckFlags(0, -1);
+
qemuDriverLock(driver);
vm = virDomainFindByUUID(&driver->domains, dom->uuid);
qemuDriverUnlock(driver);
@@ -1496,6 +1500,11 @@ cleanup:
return ret;
}
+static int
+qemuDomainShutdown(virDomainPtr dom)
+{
+ return qemuDomainShutdownFlags(dom, 0);
+}
static int qemuDomainReboot(virDomainPtr dom, unsigned int flags) {
struct qemud_driver *driver = dom->conn->privateData;
@@ -8925,6 +8934,7 @@ static virDriver qemuDriver = {
.domainSuspend = qemudDomainSuspend, /* 0.2.0 */
.domainResume = qemudDomainResume, /* 0.2.0 */
.domainShutdown = qemuDomainShutdown, /* 0.2.0 */
+ .domainShutdownFlags = qemuDomainShutdownFlags, /* 0.9.4 */
.domainReboot = qemuDomainReboot, /* 0.9.3 */
.domainDestroy = qemuDomainDestroy, /* 0.2.0 */
.domainDestroyFlags = qemuDomainDestroyFlags, /* 0.9.4 */
--
1.7.5.rc3