summaryrefslogtreecommitdiffstats
path: root/typewrappers.h
diff options
context:
space:
mode:
authorStefan Berger <stefanb@us.ibm.com>2010-04-29 06:46:01 -0400
committerStefan Berger <stefanb@us.ibm.com>2010-04-29 06:46:01 -0400
commit626e52010b6151cbae01e91aa0b94dae8490537c (patch)
tree8097d742db59ce95cf4281b724965c3d1c5999d6 /typewrappers.h
parente4affdfbc19a6bd2778acf0e64a947cecd7eea83 (diff)
downloadlibvirt-python-split-626e52010b6151cbae01e91aa0b94dae8490537c.tar.gz
libvirt-python-split-626e52010b6151cbae01e91aa0b94dae8490537c.tar.xz
libvirt-python-split-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.h9
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);