api: add virSecretDefineFlags

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Kristina Hanicova 2021-08-20 14:30:37 +02:00 committed by Ján Tomko
parent d46a0b0e96
commit 6589794a1f
2 changed files with 6 additions and 1 deletions

View File

@ -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);

View File

@ -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