summaryrefslogtreecommitdiffstats
path: root/types.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2007-03-09 15:42:50 +0000
committerDaniel P. Berrange <berrange@redhat.com>2007-03-09 15:42:50 +0000
commite04a275034df1ca962205bd93c9c55aefd1c8903 (patch)
treee357e9bc652d64368c28e875ebf5457760303675 /types.c
parentf928d2b27fce6b225d7325702226f159c3014b66 (diff)
downloadlibvirt-python-split-e04a275034df1ca962205bd93c9c55aefd1c8903.tar.gz
libvirt-python-split-e04a275034df1ca962205bd93c9c55aefd1c8903.tar.xz
libvirt-python-split-e04a275034df1ca962205bd93c9c55aefd1c8903.zip
Added python bindings for networking APIs
Diffstat (limited to 'types.c')
-rw-r--r--types.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/types.c b/types.c
index 4ad4fa5..4672e1c 100644
--- a/types.c
+++ b/types.c
@@ -125,6 +125,24 @@ libvirt_virDomainPtrWrap(virDomainPtr node)
}
PyObject *
+libvirt_virNetworkPtrWrap(virNetworkPtr node)
+{
+ PyObject *ret;
+
+#ifdef DEBUG
+ printf("libvirt_virNetworkPtrWrap: node = %p\n", node);
+#endif
+ if (node == NULL) {
+ Py_INCREF(Py_None);
+ return (Py_None);
+ }
+ ret =
+ PyCObject_FromVoidPtrAndDesc((void *) node, (char *) "virNetworkPtr",
+ NULL);
+ return (ret);
+}
+
+PyObject *
libvirt_virConnectPtrWrap(virConnectPtr node)
{
PyObject *ret;