Signed-off-by: Kristina Hanicova <khanicov(a)redhat.com>
---
include/libvirt/libvirt-interface.h | 4 ++++
src/libvirt-interface.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/include/libvirt/libvirt-interface.h b/include/libvirt/libvirt-interface.h
index 7591c6c7fb..803cb33ffe 100644
--- a/include/libvirt/libvirt-interface.h
+++ b/include/libvirt/libvirt-interface.h
@@ -79,6 +79,10 @@ typedef enum {
VIR_INTERFACE_XML_INACTIVE = 1 << 0 /* dump inactive interface information */
} virInterfaceXMLFlags;
+typedef enum {
+ VIR_INTERFACE_DEFINE_VALIDATE = 1 << 0, /* Validate the XML document against
schema */
+} virInterfaceDefineFlags;
+
char * virInterfaceGetXMLDesc (virInterfacePtr iface,
unsigned int flags);
virInterfacePtr virInterfaceDefineXML (virConnectPtr conn,
diff --git a/src/libvirt-interface.c b/src/libvirt-interface.c
index 5eb5980483..2af86291d3 100644
--- a/src/libvirt-interface.c
+++ b/src/libvirt-interface.c
@@ -437,7 +437,7 @@ virInterfaceGetXMLDesc(virInterfacePtr iface, unsigned int flags)
* virInterfaceDefineXML:
* @conn: pointer to the hypervisor connection
* @xml: the XML description for the interface, preferably in UTF-8
- * @flags: extra flags; not used yet, so callers should always pass 0
+ * @flags: bitwise-OR of virInterfaceDefineFlags
*
* Define an inactive persistent physical host interface or modify an existing
* persistent one from the XML description.
--
2.31.1