[PATCH 2/5] snapshot: auto generate RPC calls for remoteDomainSnapshotDeleteByName

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

 



Let gendispatch.pl generate codes for both server side and client side.

*src/remote/remote_driver.c:
Add remoteDomainSnapshotDeleteByName into remote driver

*src/remote/remote_protocol.x:
New RPC procedure REMOTE_PROC_DOMAIN_SNAPSHOT_DELETE_BY_NAME
and its argument structs

*src/remote_protocol-structs: edit it to match
---
 src/remote/remote_driver.c   |  1 +
 src/remote/remote_protocol.x | 13 ++++++++++++-
 src/remote_protocol-structs  |  7 +++++++
 3 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index fcf45d3..0ff3207 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -6309,6 +6309,7 @@ static virDriver remote_driver = {
     .domainSnapshotIsCurrent = remoteDomainSnapshotIsCurrent, /* 0.9.13 */
     .domainSnapshotHasMetadata = remoteDomainSnapshotHasMetadata, /* 0.9.13 */
     .domainSnapshotDelete = remoteDomainSnapshotDelete, /* 0.8.0 */
+    .domainSnapshotDeleteByName = remoteDomainSnapshotDeleteByName, /* 1.0.7 */
     .domainQemuMonitorCommand = remoteDomainQemuMonitorCommand, /* 0.8.3 */
     .domainQemuAttach = remoteDomainQemuAttach, /* 0.9.4 */
     .domainQemuAgentCommand = remoteDomainQemuAgentCommand, /* 0.10.0 */
diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
index 9723377..50c3734 100644
--- a/src/remote/remote_protocol.x
+++ b/src/remote/remote_protocol.x
@@ -2475,6 +2475,12 @@ struct remote_domain_snapshot_delete_args {
     unsigned int flags;
 };
 
+struct remote_domain_snapshot_delete_by_name_args {
+    remote_nonnull_domain dom;
+    remote_string name;
+    unsigned int flags;
+};
+
 struct remote_domain_open_console_args {
     remote_nonnull_domain dom;
     remote_string dev_name;
@@ -4434,6 +4440,11 @@ enum remote_procedure {
     /**
      * @generate: server
      */
-    REMOTE_PROC_NODE_DEVICE_DETACH_FLAGS = 301
+    REMOTE_PROC_NODE_DEVICE_DETACH_FLAGS = 301,
+
+    /**
+     * @generate: both
+     */
+    REMOTE_PROC_DOMAIN_SNAPSHOT_DELETE_BY_NAME = 302
 
 };
diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs
index ea38ea2..035a121 100644
--- a/src/remote_protocol-structs
+++ b/src/remote_protocol-structs
@@ -1904,6 +1904,12 @@ struct remote_domain_snapshot_delete_args {
         remote_nonnull_domain_snapshot snap;
         u_int                      flags;
 };
+
+struct remote_domain_snapshot_delete_by_name_args {
+        remote_nonnull_domain      dom;
+        remote_string              name;
+        u_int                      flags;
+};
 struct remote_domain_open_console_args {
         remote_nonnull_domain      dom;
         remote_string              dev_name;
@@ -2494,4 +2500,5 @@ enum remote_procedure {
         REMOTE_PROC_DOMAIN_MIGRATE_GET_COMPRESSION_CACHE = 299,
         REMOTE_PROC_DOMAIN_MIGRATE_SET_COMPRESSION_CACHE = 300,
         REMOTE_PROC_NODE_DEVICE_DETACH_FLAGS = 301,
+        REMOTE_PROC_DOMAIN_SNAPSHOT_DELETE_BY_NAME = 302,
 };
-- 
1.8.1.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]