On 9/3/23 17:49, K Shiva Kiran wrote:
Adds enum `virNWFilterMetadataType` to choose between
`<title>`,
`<description>` or `<metadata>`.
Signed-off-by: K Shiva Kiran <shiva_kr(a)riseup.net>
---
include/libvirt/libvirt-nwfilter.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/include/libvirt/libvirt-nwfilter.h b/include/libvirt/libvirt-nwfilter.h
index 33b842b464..a9930a1e66 100644
--- a/include/libvirt/libvirt-nwfilter.h
+++ b/include/libvirt/libvirt-nwfilter.h
@@ -159,4 +159,18 @@ int
virNWFilterBindingDelete(virNWFilterBindingPtr binding);
int virNWFilterBindingRef(virNWFilterBindingPtr binding);
int virNWFilterBindingFree(virNWFilterBindingPtr binding);
+/**
+ * virNWFilterMetadataType:
+ *
+ * Since: 9.8.0
+ */
+typedef enum {
+ VIR_NWFILTER_METADATA_DESCRIPTION = 0, /* Operate on <description> (Since:
9.8.0) */
+ VIR_NWFILTER_METADATA_TITLE = 1, /* Operate on <title> (Since: 9.8.0)
*/
+ VIR_NWFILTER_METADATA_ELEMENT = 2, /* Operate on <metadata> (Since: 9.8.0)
*/
+
+# ifdef VIR_ENUM_SENTINELS
+ VIR_NWFILTER_METADATA_LAST /* (Since: 9.8.0) */
+# endif
+} virNWFilterMetadataType;
#endif /* LIBVIRT_NWFILTER_H */
This patch alone makes no sense. Nobody will ever want to backport just
this typedef. Merge it into 05/16.
Michal