]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
api: add virNWFilterBindingCreateFlags
authorKristina Hanicova <khanicov@redhat.com>
Thu, 26 Aug 2021 12:32:32 +0000 (14:32 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 6 Sep 2021 15:08:59 +0000 (17:08 +0200)
Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
include/libvirt/libvirt-nwfilter.h
src/libvirt-nwfilter.c

index 9897df6df65c33192739d43724cd64e8ef208124..4e288010066f2b45d5d4c5216180f93c7fd7e4f5 100644 (file)
@@ -107,6 +107,11 @@ int                     virNWFilterFree         (virNWFilterPtr nwfilter);
 /*
  * NWFilter information
  */
+
+typedef enum {
+    VIR_NWFILTER_BINDING_CREATE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
+} virNWFilterBindingCreateFlags;
+
 const char*             virNWFilterGetName       (virNWFilterPtr nwfilter);
 int                     virNWFilterGetUUID       (virNWFilterPtr nwfilter,
                                                   unsigned char *uuid);
index 8d0927029654ceb745ca0884539f2a9acc8a6993..73b061152edb11d05a6b3919f2d38803b8769188 100644 (file)
@@ -718,7 +718,7 @@ virNWFilterBindingGetFilterName(virNWFilterBindingPtr binding)
  * virNWFilterBindingCreateXML:
  * @conn: pointer to the hypervisor connection
  * @xml: an XML description of the binding
- * @flags: currently unused, pass 0
+ * @flags: bitwise-OR of virNWFilterBindingCreateFlags
  *
  * Define a new network filter, based on an XML description
  * similar to the one returned by virNWFilterGetXMLDesc(). This