On 08/17/2012 09:38 AM, Osier Yang wrote:
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.
---
include/libvirt/libvirt.h.in | 33 ++++++++++++
python/generator.py | 5 +-
src/driver.h | 5 ++
src/libvirt.c | 112 +++++++++++++++++++++++++++++++++++++++---
src/libvirt_public.syms | 1 +
5 files changed, 146 insertions(+), 10 deletions(-)
+++ b/src/libvirt_public.syms
@@ -549,6 +549,7 @@ LIBVIRT_0.10.0 {
virDomainGetHostname;
virConnectRegisterCloseCallback;
virConnectUnregisterCloseCallback;
+ virConnectListAllStoragePools;
} LIBVIRT_0.9.13;
I tend to sort these blocks, but it was already unsorted before you got
here :)
ACK.
--
Eric Blake eblake(a)redhat.com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org