mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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:
parent
d46a0b0e96
commit
6589794a1f
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user