diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2008-02-20 15:26:22 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2008-02-20 15:26:22 +0000 |
commit | 774dc9bff1c113d150e3de12a1a14f3778da7e8b (patch) | |
tree | efe8203e87c7688c2c634620cee332b724ce88de /libvirt_wrap.h | |
parent | 7119a8897ad53b930d5af35fd80ddfe367750b92 (diff) | |
download | libvirt-python-v6-774dc9bff1c113d150e3de12a1a14f3778da7e8b.tar.gz libvirt-python-v6-774dc9bff1c113d150e3de12a1a14f3778da7e8b.tar.xz libvirt-python-v6-774dc9bff1c113d150e3de12a1a14f3778da7e8b.zip |
Added python binding for storage APIs
Diffstat (limited to 'libvirt_wrap.h')
-rw-r--r-- | libvirt_wrap.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libvirt_wrap.h b/libvirt_wrap.h index ef5fa68..acf788f 100644 --- a/libvirt_wrap.h +++ b/libvirt_wrap.h @@ -48,6 +48,24 @@ typedef struct { } PyvirNetwork_Object; +#define PyvirStoragePool_Get(v) (((v) == Py_None) ? NULL : \ + (((PyvirStoragePool_Object *)(v))->obj)) + +typedef struct { + PyObject_HEAD + virStoragePoolPtr obj; +} PyvirStoragePool_Object; + + +#define PyvirStorageVol_Get(v) (((v) == Py_None) ? NULL : \ + (((PyvirStorageVol_Object *)(v))->obj)) + +typedef struct { + PyObject_HEAD + virStorageVolPtr obj; +} PyvirStorageVol_Object; + + PyObject * libvirt_intWrap(int val); PyObject * libvirt_longWrap(long val); PyObject * libvirt_ulongWrap(unsigned long val); @@ -58,6 +76,8 @@ PyObject * libvirt_charPtrConstWrap(const char *str); PyObject * libvirt_virConnectPtrWrap(virConnectPtr node); PyObject * libvirt_virDomainPtrWrap(virDomainPtr node); PyObject * libvirt_virNetworkPtrWrap(virNetworkPtr node); +PyObject * libvirt_virStoragePoolPtrWrap(virStoragePoolPtr node); +PyObject * libvirt_virStorageVolPtrWrap(virStorageVolPtr node); /* Provide simple macro statement wrappers (adapted from GLib, in turn from Perl): |