summaryrefslogtreecommitdiffstats
path: root/typewrappers.c
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.c
parente4affdfbc19a6bd2778acf0e64a947cecd7eea83 (diff)
downloadlibvirt-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.c')
-rw-r--r--typewrappers.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/typewrappers.c b/typewrappers.c
index d0f703c..733aa20 100644
--- a/typewrappers.c
+++ b/typewrappers.c
@@ -215,6 +215,19 @@ libvirt_virSecretPtrWrap(virSecretPtr node)
}
PyObject *
+libvirt_virNWFilterPtrWrap(virNWFilterPtr node)
+{
+ PyObject *ret;
+
+ if (node == NULL) {
+ Py_INCREF(Py_None);
+ return Py_None;
+ }
+ ret = PyCObject_FromVoidPtrAndDesc(node, (char *) "virNWFilterPtr", NULL);
+ return (ret);
+}
+
+PyObject *
libvirt_virStreamPtrWrap(virStreamPtr node)
{
PyObject *ret;