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.c | |
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.c')
-rw-r--r-- | typewrappers.c | 13 |
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; |