diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2007-03-09 15:42:50 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2007-03-09 15:42:50 +0000 |
commit | e04a275034df1ca962205bd93c9c55aefd1c8903 (patch) | |
tree | e357e9bc652d64368c28e875ebf5457760303675 /types.c | |
parent | f928d2b27fce6b225d7325702226f159c3014b66 (diff) | |
download | libvirt-python-v6-e04a275034df1ca962205bd93c9c55aefd1c8903.tar.gz libvirt-python-v6-e04a275034df1ca962205bd93c9c55aefd1c8903.tar.xz libvirt-python-v6-e04a275034df1ca962205bd93c9c55aefd1c8903.zip |
Added python bindings for networking APIs
Diffstat (limited to 'types.c')
-rw-r--r-- | types.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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; |