Signed-off-by: Kristina Hanicova <khanicov(a)redhat.com>
---
include/libvirt/libvirt-secret.h | 5 +++++
src/libvirt-secret.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/libvirt/libvirt-secret.h b/include/libvirt/libvirt-secret.h
index e5aaac9450..b8e53674d8 100644
--- a/include/libvirt/libvirt-secret.h
+++ b/include/libvirt/libvirt-secret.h
@@ -88,6 +88,11 @@ virSecretPtr virSecretLookupByUUIDString(virConnectPtr
conn,
virSecretPtr virSecretLookupByUsage(virConnectPtr conn,
int usageType,
const char *usageID);
+
+typedef enum {
+ VIR_SECRET_DEFINE_VALIDATE = 1 << 0, /* Validate the XML document against
schema */
+} virSecretDefineFlags;
+
virSecretPtr virSecretDefineXML (virConnectPtr conn,
const char *xml,
unsigned int flags);
diff --git a/src/libvirt-secret.c b/src/libvirt-secret.c
index a427805c7a..d3626ed561 100644
--- a/src/libvirt-secret.c
+++ b/src/libvirt-secret.c
@@ -316,7 +316,7 @@ virSecretLookupByUsage(virConnectPtr conn,
* virSecretDefineXML:
* @conn: virConnect connection
* @xml: XML describing the secret.
- * @flags: extra flags; not used yet, so callers should always pass 0
+ * @flags: bitwise-OR of virSecretDefineFlags
*
* If XML specifies a UUID, locates the specified secret and replaces all
* attributes of the secret specified by UUID by attributes specified in xml
--
2.31.1