diff options
author | Osier Yang <jyang@redhat.com> | 2012-09-04 23:16:24 +0800 |
---|---|---|
committer | Osier Yang <jyang@redhat.com> | 2012-09-06 21:58:36 +0800 |
commit | 075c754af0fe28dc88563125fe5635cc3410f604 (patch) | |
tree | fb1de4493203367830c77e323af421796ea0ae22 /python | |
parent | esx: Add implementation for virConnectListAllDomains() (diff) | |
download | libvirt-075c754af0fe28dc88563125fe5635cc3410f604.tar.gz libvirt-075c754af0fe28dc88563125fe5635cc3410f604.tar.bz2 libvirt-075c754af0fe28dc88563125fe5635cc3410f604.zip |
list: Define new API virStorageListAllStoragePools
This introduces a new API to list the storage pool objects,
4 groups of flags are provided to filter the returned pools:
* Active or not
* Autostarting or not
* Persistent or not
* And the pool type.
include/libvirt/libvirt.h.in: New enum virConnectListAllStoragePoolFlags;
Declare the API.
python/generator.py: Skip the generating
src/driver.h: (virDrvConnectListAllStoragePools)
src/libvirt.c: Implementation for the API.
src/libvirt_public.syms: Export the symbol.
Diffstat (limited to 'python')
-rwxr-xr-x | python/generator.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/generator.py b/python/generator.py index 7beb36125..261efe02b 100755 --- a/python/generator.py +++ b/python/generator.py @@ -337,7 +337,7 @@ foreign_encoding_args = ( # ####################################################################### -# Class methods which are written by hand in libvir.c but the Python-level +# Class methods which are written by hand in libvirt.c but the Python-level # code is still automatically generated (so they are not in skip_function()). skip_impl = ( 'virConnectGetVersion', @@ -457,9 +457,10 @@ skip_function = ( 'virConnectDomainEventDeregisterAny', # overridden in virConnect.py 'virSaveLastError', # We have our own python error wrapper 'virFreeError', # Only needed if we use virSaveLastError - 'virConnectListAllDomains', #overridden in virConnect.py + 'virConnectListAllDomains', # overridden in virConnect.py 'virDomainListAllSnapshots', # overridden in virDomain.py 'virDomainSnapshotListAllChildren', # overridden in virDomainSnapshot.py + 'virConnectListAllStoragePools', # overridden in virConnect.py 'virStreamRecvAll', # Pure python libvirt-override-virStream.py 'virStreamSendAll', # Pure python libvirt-override-virStream.py |