diff options
author | Stefan Berger <stefanb@us.ibm.com> | 2010-04-29 06:46:01 -0400 |
---|---|---|
committer | Stefan Berger <stefanb@us.ibm.com> | 2010-04-29 06:46:01 -0400 |
commit | 626e52010b6151cbae01e91aa0b94dae8490537c (patch) | |
tree | 8097d742db59ce95cf4281b724965c3d1c5999d6 /typewrappers.h | |
parent | e4affdfbc19a6bd2778acf0e64a947cecd7eea83 (diff) | |
download | libvirt-python-v6-626e52010b6151cbae01e91aa0b94dae8490537c.tar.gz libvirt-python-v6-626e52010b6151cbae01e91aa0b94dae8490537c.tar.xz libvirt-python-v6-626e52010b6151cbae01e91aa0b94dae8490537c.zip |
nwfilter: python bindings for nwfilter
I have primarily followed the pattern of the 'secret' driver to provide
support for the missing python bindings for the network filter API.
Diffstat (limited to 'typewrappers.h')
-rw-r--r-- | typewrappers.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/typewrappers.h b/typewrappers.h index c0e69d8..cb5e5db 100644 --- a/typewrappers.h +++ b/typewrappers.h @@ -91,6 +91,14 @@ typedef struct { virSecretPtr obj; } PyvirSecret_Object; +#define PyvirNWFilter_Get(v) (((v) == Py_None) ? NULL : \ + (((PyvirNWFilter_Object *)(v))->obj)) + +typedef struct { + PyObject_HEAD + virNWFilterPtr obj; +} PyvirNWFilter_Object; + #define PyvirStream_Get(v) (((v) == Py_None) ? NULL : \ (((PyvirStream_Object *)(v))->obj)) @@ -163,6 +171,7 @@ PyObject * libvirt_virFreeCallbackWrap(virFreeCallback node); PyObject * libvirt_virVoidPtrWrap(void* node); PyObject * libvirt_virNodeDevicePtrWrap(virNodeDevicePtr node); PyObject * libvirt_virSecretPtrWrap(virSecretPtr node); +PyObject * libvirt_virNWFilterPtrWrap(virNWFilterPtr node); PyObject * libvirt_virStreamPtrWrap(virStreamPtr node); PyObject * libvirt_virDomainSnapshotPtrWrap(virDomainSnapshotPtr node); |