api: add virNetworkDefineFlags

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Kristina Hanicova 2021-08-23 18:50:11 +02:00 committed by Michal Privoznik
parent a4d8bd34a5
commit 0faf5c6aa4
2 changed files with 5 additions and 1 deletions

View File

@ -119,6 +119,10 @@ virNetworkPtr virNetworkLookupByUUIDString (virConnectPtr conn,
virNetworkPtr virNetworkCreateXML (virConnectPtr conn,
const char *xmlDesc);
typedef enum {
VIR_NETWORK_DEFINE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
} virNetworkDefineFlags;
/*
* Define inactive persistent network
*/

View File

@ -469,7 +469,7 @@ virNetworkDefineXML(virConnectPtr conn, const char *xml)
* virNetworkDefineXMLFlags:
* @conn: pointer to the hypervisor connection
* @xml: the XML description for the network, preferably in UTF-8
* @flags: extra flags; not used yet, so callers should always pass 0
* @flags: bitwise-OR of virNetworkDefineFlags
*
* Define an inactive persistent virtual network or modify an existing
* persistent one from the XML description.