[PATCH v2 03/11] nwfilter: Implement RPC

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

 



Signed-off-by: K Shiva Kiran <shiva_kr@xxxxxxxxxx>
---
 src/remote/remote_driver.c   |  2 ++
 src/remote/remote_protocol.x | 34 +++++++++++++++++++++++++++++++++-
 src/remote_protocol-structs  | 19 +++++++++++++++++++
 3 files changed, 54 insertions(+), 1 deletion(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index 857acef69a..0573e1afb3 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -8300,6 +8300,8 @@ static virNWFilterDriver nwfilter_driver = {
     .nwfilterBindingCreateXML = remoteNWFilterBindingCreateXML, /* 4.5.0 */
     .nwfilterBindingDelete = remoteNWFilterBindingDelete, /* 4.5.0 */
     .nwfilterBindingGetXMLDesc = remoteNWFilterBindingGetXMLDesc, /* 4.5.0 */
+    .nwfilterSetMetadata = remoteNWFilterSetMetadata, /* 9.9.0 */
+    .nwfilterGetMetadata = remoteNWFilterGetMetadata, /* 9.9.0 */
 };
 
 static virConnectDriver connect_driver = {
diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
index e295b0acc3..9fbf93e588 100644
--- a/src/remote/remote_protocol.x
+++ b/src/remote/remote_protocol.x
@@ -1684,6 +1684,25 @@ struct remote_nwfilter_get_xml_desc_ret {
     remote_nonnull_string xml;
 };
 
+struct remote_nwfilter_set_metadata_args {
+    remote_nonnull_nwfilter nwfilter;
+    int type;
+    remote_string metadata;
+    remote_string key;
+    remote_string uri;
+    unsigned int flags;
+};
+
+struct remote_nwfilter_get_metadata_args {
+    remote_nonnull_nwfilter nwfilter;
+    int type;
+    remote_string uri;
+    unsigned int flags;
+};
+
+struct remote_nwfilter_get_metadata_ret {
+    remote_nonnull_string metadata;
+};
 
 /* Interface calls: */
 
@@ -7021,5 +7040,18 @@ enum remote_procedure {
      * @generate: both
      * @acl: none
      */
-    REMOTE_PROC_NETWORK_EVENT_CALLBACK_METADATA_CHANGE = 446
+    REMOTE_PROC_NETWORK_EVENT_CALLBACK_METADATA_CHANGE = 446,
+
+     /**
+     * @generate: both
+     * @acl: nwfilter:write
+     * @acl: nwfilter:save
+     */
+    REMOTE_PROC_NWFILTER_SET_METADATA = 447,
+
+    /**
+     * @generate: both
+     * @acl: nwfilter:read
+     */
+    REMOTE_PROC_NWFILTER_GET_METADATA = 448
 };
diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs
index 924ca41825..2ee491a3fe 100644
--- a/src/remote_protocol-structs
+++ b/src/remote_protocol-structs
@@ -1220,6 +1220,23 @@ struct remote_nwfilter_get_xml_desc_args {
 struct remote_nwfilter_get_xml_desc_ret {
         remote_nonnull_string      xml;
 };
+struct remote_nwfilter_set_metadata_args {
+        remote_nonnull_nwfilter    nwfilter;
+        int                        type;
+        remote_string              metadata;
+        remote_string              key;
+        remote_string              uri;
+        u_int                      flags;
+};
+struct remote_nwfilter_get_metadata_args {
+        remote_nonnull_nwfilter    nwfilter;
+        int                        type;
+        remote_string              uri;
+        u_int                      flags;
+};
+struct remote_nwfilter_get_metadata_ret {
+        remote_nonnull_string      metadata;
+};
 struct remote_connect_num_of_interfaces_ret {
         int                        num;
 };
@@ -3743,4 +3760,6 @@ enum remote_procedure {
         REMOTE_PROC_NETWORK_SET_METADATA = 444,
         REMOTE_PROC_NETWORK_GET_METADATA = 445,
         REMOTE_PROC_NETWORK_EVENT_CALLBACK_METADATA_CHANGE = 446,
+        REMOTE_PROC_NWFILTER_SET_METADATA = 447,
+        REMOTE_PROC_NWFILTER_GET_METADATA = 448,
 };
-- 
2.42.0





[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]

  Powered by Linux