From 626e52010b6151cbae01e91aa0b94dae8490537c Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Thu, 29 Apr 2010 06:46:01 -0400 Subject: 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. --- typewrappers.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'typewrappers.c') diff --git a/typewrappers.c b/typewrappers.c index d0f703c..733aa20 100644 --- a/typewrappers.c +++ b/typewrappers.c @@ -214,6 +214,19 @@ libvirt_virSecretPtrWrap(virSecretPtr node) return (ret); } +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) { -- cgit