diff options
author | Osier Yang <jyang@redhat.com> | 2012-09-14 16:38:48 +0800 |
---|---|---|
committer | Osier Yang <jyang@redhat.com> | 2012-09-17 13:08:39 +0800 |
commit | 7a236982fecd3abcc7190ad55ed85527939302f2 (patch) | |
tree | f15dc2fff3eb3bf461a3843e58434215c61c6370 /src/driver.h | |
parent | list: Use virConnectListAllNWFilters in virsh (diff) | |
download | libvirt-7a236982fecd3abcc7190ad55ed85527939302f2.tar.gz libvirt-7a236982fecd3abcc7190ad55ed85527939302f2.tar.bz2 libvirt-7a236982fecd3abcc7190ad55ed85527939302f2.zip |
list: Define new API virConnectListAllSecrets
This is to list the secret objects. Supports to filter the secrets
by its storage location, and whether it's private or not.
include/libvirt/libvirt.h.in: Declare enum virConnectListAllSecretFlags
and virConnectListAllSecrets.
python/generator.py: Skip auto-generating
src/driver.h: (virDrvConnectListAllSecrets)
src/libvirt.c: Implement the public API
src/libvirt_public.syms: Export the symbol to public
Diffstat (limited to 'src/driver.h')
-rw-r--r-- | src/driver.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/driver.h b/src/driver.h index 9984a8524..3e69daeb0 100644 --- a/src/driver.h +++ b/src/driver.h @@ -1567,6 +1567,10 @@ typedef int (*virDrvListSecrets) (virConnectPtr conn, char **uuids, int maxuuids); +typedef int + (*virDrvListAllSecrets) (virConnectPtr conn, + virSecretPtr **secrets, + unsigned int flags); typedef struct _virSecretDriver virSecretDriver; typedef virSecretDriver *virSecretDriverPtr; @@ -1588,6 +1592,7 @@ struct _virSecretDriver { virDrvNumOfSecrets numOfSecrets; virDrvListSecrets listSecrets; + virDrvListAllSecrets listAllSecrets; virDrvSecretLookupByUUID lookupByUUID; virDrvSecretLookupByUsage lookupByUsage; virDrvSecretDefineXML defineXML; |