api: add virStoragePoolDefineFlags

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Kristina Hanicova 2021-08-24 16:51:08 +02:00 committed by Michal Privoznik
parent e70e8e2dd8
commit 7097367b25
2 changed files with 5 additions and 1 deletions

View 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
*/

View 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.