]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
api: add virInterfaceDefineFlags
authorKristina Hanicova <khanicov@redhat.com>
Fri, 20 Aug 2021 11:28:49 +0000 (13:28 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 20 Aug 2021 13:41:21 +0000 (15:41 +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-interface.h
src/libvirt-interface.c

index 7591c6c7fbe253ed4d0c89933f0123ddde665920..803cb33ffe7c5088684689c1bf203ae838db821e 100644 (file)
@@ -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,
index 5eb5980483f22ff8ede7089bc2a627a2e9062c7b..2af86291d385d33e2c5381ed4ff553a342ee819f 100644 (file)
@@ -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.