From: Kristina Hanicova Date: Tue, 24 Aug 2021 14:51:08 +0000 (+0200) Subject: api: add virStoragePoolDefineFlags X-Git-Tag: v7.7.0-rc1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7097367b25d2d4e97614fa05ffb70bae108128e9;p=thirdparty%2Flibvirt.git api: add virStoragePoolDefineFlags Signed-off-by: Kristina Hanicova Reviewed-by: Michal Privoznik --- diff --git a/include/libvirt/libvirt-storage.h b/include/libvirt/libvirt-storage.h index 089e1e0bd1..b459fe3e8e 100644 --- a/include/libvirt/libvirt-storage.h +++ b/include/libvirt/libvirt-storage.h @@ -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 */ diff --git a/src/libvirt-storage.c b/src/libvirt-storage.c index 4badb13f04..cbc522b300 100644 --- a/src/libvirt-storage.c +++ b/src/libvirt-storage.c @@ -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.