Signed-off-by: Kristina Hanicova <khani...@redhat.com> --- include/libvirt/libvirt-nwfilter.h | 5 +++++ src/libvirt-nwfilter.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-)
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 -- 2.31.1