]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
api: add virStoragePoolDefineFlags
authorKristina Hanicova <khanicov@redhat.com>
Tue, 24 Aug 2021 14:51:08 +0000 (16:51 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 25 Aug 2021 07:57:47 +0000 (09:57 +0200)
Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
include/libvirt/libvirt-storage.h
src/libvirt-storage.c

index 089e1e0bd1b774200db5ae99541af71ee16a5456..b459fe3e8ed1cb550eb3b270623047cfcd5c8180 100644 (file)
@@ -271,6 +271,10 @@ virStoragePoolPtr       virStoragePoolLookupByVolume    (virStorageVolPtr vol);
 virStoragePoolPtr       virStoragePoolLookupByTargetPath(virConnectPtr conn,
                                                          const char *path);
 
+typedef enum {
+    VIR_STORAGE_POOL_DEFINE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
+} virStoragePoolDefineFlags;
+
 /*
  * Creating/destroying pools
  */
index 4badb13f049b5fb7a607984255e90fef5f586fa5..cbc522b3006094263352ecb7151e4a3ec94275c1 100644 (file)
@@ -591,7 +591,7 @@ virStoragePoolCreateXML(virConnectPtr conn,
  * virStoragePoolDefineXML:
  * @conn: pointer to hypervisor connection
  * @xml: XML description for new pool
- * @flags: extra flags; not used yet, so callers should always pass 0
+ * @flags: bitwise-OR of virStoragePoolDefineFlags
  *
  * Define an inactive persistent storage pool or modify an existing persistent
  * one from the XML description.