[PATCH v2 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 | 14 +++++++++++++-
 src/remote_protocol-structs  |  6 ++++++
 3 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index 7a0c1f6..fe7b836 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -6721,6 +6721,7 @@ static virDriver remote_driver = {
     .domainSnapshotIsCurrent = remoteDomainSnapshotIsCurrent, /* 0.9.13 */
     .domainSnapshotHasMetadata = remoteDomainSnapshotHasMetadata, /* 0.9.13 */
     .domainSnapshotDelete = remoteDomainSnapshotDelete, /* 0.8.0 */
+    .domainSnapshotDeleteByName = remoteDomainSnapshotDeleteByName, /* 1.1.1 */
     .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 2e9dc1d..aa3266b 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;
@@ -4944,6 +4950,12 @@ enum remote_procedure {
      * @generate: none
      * @acl: domain:migrate
      */
-    REMOTE_PROC_DOMAIN_MIGRATE_CONFIRM3_PARAMS = 307
+    REMOTE_PROC_DOMAIN_MIGRATE_CONFIRM3_PARAMS = 307,
+
+    /**
+     * @generate: both
+     * @acl: domain:snapshot
+     */
+    REMOTE_PROC_DOMAIN_SNAPSHOT_DELETE_BY_NAME = 308
 
 };
diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs
index e38d24a..d9f5a68 100644
--- a/src/remote_protocol-structs
+++ b/src/remote_protocol-structs
@@ -1904,6 +1904,11 @@ 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;
@@ -2601,4 +2606,5 @@ enum remote_procedure {
         REMOTE_PROC_DOMAIN_MIGRATE_PERFORM3_PARAMS = 305,
         REMOTE_PROC_DOMAIN_MIGRATE_FINISH3_PARAMS = 306,
         REMOTE_PROC_DOMAIN_MIGRATE_CONFIRM3_PARAMS = 307,
+        REMOTE_PROC_DOMAIN_SNAPSHOT_DELETE_BY_NAME = 308,
 };
-- 
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]