]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
api: add virNetworkCreateFlags
authorKristina Hanicova <khanicov@redhat.com>
Wed, 15 Sep 2021 11:07:29 +0000 (13:07 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 16 Sep 2021 14:26:18 +0000 (16:26 +0200)
Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
include/libvirt/libvirt-network.h
src/libvirt-network.c

index e505c3eb7e93e434aea0493c63bebab5a7726c10..398d8fccd484211ffcec8139e68a6e0c48be9b29 100644 (file)
@@ -113,6 +113,10 @@ virNetworkPtr           virNetworkLookupByUUID          (virConnectPtr conn,
 virNetworkPtr           virNetworkLookupByUUIDString    (virConnectPtr conn,
                                                          const char *uuid);
 
+typedef enum {
+    VIR_NETWORK_CREATE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
+} virNetworkCreateFlags;
+
 /*
  * Create active transient network
  */
index ee53b9f2c5ef141b7c4adeaf9aadd4fc9bca49fc..883dd40f6b7ec36ab0d9aabe2b13c300deeceebe 100644 (file)
@@ -431,7 +431,7 @@ virNetworkCreateXML(virConnectPtr conn, const char *xmlDesc)
  * virNetworkCreateXMLFlags:
  * @conn: pointer to the hypervisor connection
  * @xmlDesc: an XML description of the network
- * @flags: extra flags; not used yet, so callers should always pass 0
+ * @flags: bitwise-OR of virNetworkCreateFlags
  *
  * Create and start a new virtual network, based on an XML description
  * similar to the one returned by virNetworkGetXMLDesc()