1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-08-04 12:21:57 +03:00

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.
This commit is contained in:
Stefan Berger
2010-04-29 06:46:01 -04:00
parent e4affdfbc1
commit 626e52010b
5 changed files with 198 additions and 4 deletions

View File

@ -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)
{