[PATCH 1/8] Define Network Metadata change callback function

K Shiva Kiran posted 8 patches 10 months, 3 weeks ago
[PATCH 1/8] Define Network Metadata change callback function
Posted by K Shiva Kiran 10 months, 3 weeks ago
Signed-off-by: K Shiva Kiran <shiva_kr@riseup.net>
---
 include/libvirt/libvirt-network.h | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/include/libvirt/libvirt-network.h b/include/libvirt/libvirt-network.h
index 0f7ad8300f..4b121ae0e7 100644
--- a/include/libvirt/libvirt-network.h
+++ b/include/libvirt/libvirt-network.h
@@ -576,4 +576,25 @@ virNetworkGetMetadata(virNetworkPtr network,
                       const char *uri,
                       unsigned int flags);
 
+/**
+ * virConnectNetworkEventMetadataChangeCallback:
+ * @conn: connection object
+ * @net: network on which the event occurred
+ * @type: a value from virNetworkMetadataType
+ * @nsuri: XML namespace URI
+ * @opaque: application specified data
+ *
+ * This callback is triggered when the Network XML metadata changes
+ *
+ * The callback signature to use when registering for an event of type
+ * VIR_NETWORK_EVENT_ID_METADATA_CHANGE with virConnectNetworkEventRegisterAny().
+ *
+ * Since: 9.8.0
+ */
+typedef void (*virConnectNetworkEventMetadataChangeCallback)(virConnectPtr conn,
+                                                             virNetworkPtr net,
+                                                             int type,
+                                                             const char *nsuri,
+                                                             void *opaque);
+
 #endif /* LIBVIRT_NETWORK_H */
-- 
2.42.0