From 7097367b25d2d4e97614fa05ffb70bae108128e9 Mon Sep 17 00:00:00 2001 From: Kristina Hanicova Date: Tue, 24 Aug 2021 16:51:08 +0200 Subject: [PATCH] api: add virStoragePoolDefineFlags Signed-off-by: Kristina Hanicova Reviewed-by: Michal Privoznik --- include/libvirt/libvirt-storage.h | 4 ++++ src/libvirt-storage.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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.