[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 07/12] shutdown: Implement internal API for phyp driver



---
 src/phyp/phyp_driver.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c
index ff16aae..44a3819 100644
--- a/src/phyp/phyp_driver.c
+++ b/src/phyp/phyp_driver.c
@@ -3428,7 +3428,8 @@ phypDomainReboot(virDomainPtr dom, unsigned int flags)
 }
 
 static int
-phypDomainShutdown(virDomainPtr dom)
+phypDomainShutdownFlags(virDomainPtr dom,
+                        unsigned int flags)
 {
     int result = -1;
     ConnectionData *connection_data = dom->conn->networkPrivateData;
@@ -3441,6 +3442,8 @@ phypDomainShutdown(virDomainPtr dom)
     char *ret = NULL;
     virBuffer buf = VIR_BUFFER_INITIALIZER;
 
+    virCheckFlags(0, -1);
+
     virBufferAddLit(&buf, "chsysstate");
     if (system_type == HMC)
         virBufferAsprintf(&buf, " -m %s", managed_system);
@@ -3459,6 +3462,12 @@ cleanup:
 }
 
 static int
+phypDomainShutdown(virDomainPtr dom)
+{
+    return phypDomainShutdownFlags(dom, 0);
+}
+
+static int
 phypDomainGetInfo(virDomainPtr dom, virDomainInfoPtr info)
 {
     phyp_driverPtr phyp_driver = dom->conn->privateData;
@@ -3770,6 +3779,7 @@ static virDriver phypDriver = {
     .domainLookupByName = phypDomainLookupByName, /* 0.7.0 */
     .domainResume = phypDomainResume, /* 0.7.0 */
     .domainShutdown = phypDomainShutdown, /* 0.7.0 */
+    .domainShutdownFlags = phypDomainShutdownFlags, /* 0.9.4 */
     .domainReboot = phypDomainReboot, /* 0.9.1 */
     .domainDestroy = phypDomainDestroy, /* 0.7.3 */
     .domainDestroyFlags = phypDomainDestroyFlags, /* 0.9.4 */
-- 
1.7.5.rc3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]