From: Kristina Hanicova Date: Thu, 26 Aug 2021 12:32:32 +0000 (+0200) Subject: api: add virNWFilterBindingCreateFlags X-Git-Tag: v7.8.0-rc1~321 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e21448e830ad3a96b2782abfd6238363bd30280b;p=thirdparty%2Flibvirt.git api: add virNWFilterBindingCreateFlags Signed-off-by: Kristina Hanicova Reviewed-by: Ján Tomko Signed-off-by: Ján Tomko --- diff --git a/include/libvirt/libvirt-nwfilter.h b/include/libvirt/libvirt-nwfilter.h index 9897df6df6..4e28801006 100644 --- a/include/libvirt/libvirt-nwfilter.h +++ b/include/libvirt/libvirt-nwfilter.h @@ -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); diff --git a/src/libvirt-nwfilter.c b/src/libvirt-nwfilter.c index 8d09270296..73b061152e 100644 --- a/src/libvirt-nwfilter.c +++ b/src/libvirt-nwfilter.c @@ -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