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

[libvirt] [PATCH 02/12] shutdown: Wire up the remote protocol



---
 src/remote/remote_driver.c   |    1 +
 src/remote/remote_protocol.x |    8 +++++++-
 src/remote_protocol-structs  |    5 +++++
 3 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index 8602f5d..2b68ac8 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -4150,6 +4150,7 @@ static virDriver remote_driver = {
     .domainSuspend = remoteDomainSuspend, /* 0.3.0 */
     .domainResume = remoteDomainResume, /* 0.3.0 */
     .domainShutdown = remoteDomainShutdown, /* 0.3.0 */
+    .domainShutdownFlags = remoteDomainShutdownFlags, /* 0.9.4 */
     .domainReboot = remoteDomainReboot, /* 0.3.0 */
     .domainDestroy = remoteDomainDestroy, /* 0.3.0 */
     .domainDestroyFlags = remoteDomainDestroyFlags, /* 0.9.4 */
diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
index f300204..ded019a 100644
--- a/src/remote/remote_protocol.x
+++ b/src/remote/remote_protocol.x
@@ -667,6 +667,11 @@ struct remote_domain_shutdown_args {
     remote_nonnull_domain dom;
 };
 
+struct remote_domain_shutdown_flags_args {
+    remote_nonnull_domain dom;
+    unsigned int flags;
+};
+
 struct remote_domain_reboot_args {
     remote_nonnull_domain dom;
     unsigned int flags;
@@ -2411,7 +2416,8 @@ enum remote_procedure {
     REMOTE_PROC_DOMAIN_UNDEFINE_FLAGS = 231,  /* autogen autogen */
     REMOTE_PROC_DOMAIN_SAVE_FLAGS = 232,  /* autogen autogen */
     REMOTE_PROC_DOMAIN_RESTORE_FLAGS = 233,  /* autogen autogen */
-    REMOTE_PROC_DOMAIN_DESTROY_FLAGS = 234 /* autogen autogen */
+    REMOTE_PROC_DOMAIN_DESTROY_FLAGS = 234, /* autogen autogen */
+    REMOTE_PROC_DOMAIN_SHUTDOWN_FLAGS = 235 /* autogen autogen */
 
     /*
      * Notice how the entries are grouped in sets of 10 ?
diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs
index 94dfb22..556612b 100644
--- a/src/remote_protocol-structs
+++ b/src/remote_protocol-structs
@@ -383,6 +383,10 @@ struct remote_domain_resume_args {
 struct remote_domain_shutdown_args {
         remote_nonnull_domain      dom;
 };
+struct remote_domain_shutdown_flags_args {
+        remote_nonnull_domain      dom;
+        u_int                      flags;
+};
 struct remote_domain_reboot_args {
         remote_nonnull_domain      dom;
         u_int                      flags;
@@ -1882,4 +1886,5 @@ enum remote_procedure {
         REMOTE_PROC_DOMAIN_SAVE_FLAGS = 232,
         REMOTE_PROC_DOMAIN_RESTORE_FLAGS = 233,
         REMOTE_PROC_DOMAIN_DESTROY_FLAGS = 234,
+        REMOTE_PROC_DOMAIN_SHUTDOWN_FLAGS = 235,
 };
-- 
1.7.5.rc3


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