[PATCH 1/4] api: add virSecretDefineFlags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Kristina Hanicova <khanicov@xxxxxxxxxx>
---
 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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux