summaryrefslogtreecommitdiffstats
path: root/types.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2009-05-21 10:57:05 +0000
committerDaniel P. Berrange <berrange@redhat.com>2009-05-21 10:57:05 +0000
commit5d24a7a2136e33f2f5f3e9c8c2ee5953537b1d77 (patch)
tree83c3ceed7b7c6ae3f8eb3620be3bd64011db4c61 /types.c
parentcbfce0d1daa2e34f553dd71f978b80a7794bf3e6 (diff)
downloadlibvirt-python-split-5d24a7a2136e33f2f5f3e9c8c2ee5953537b1d77.tar.gz
libvirt-python-split-5d24a7a2136e33f2f5f3e9c8c2ee5953537b1d77.tar.xz
libvirt-python-split-5d24a7a2136e33f2f5f3e9c8c2ee5953537b1d77.zip
Add virInterface APIs to python code generator
Diffstat (limited to 'types.c')
-rw-r--r--types.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/types.c b/types.c
index 7981f80..de75471 100644
--- a/types.c
+++ b/types.c
@@ -119,6 +119,21 @@ libvirt_virNetworkPtrWrap(virNetworkPtr node)
}
PyObject *
+libvirt_virInterfacePtrWrap(virInterfacePtr node)
+{
+ PyObject *ret;
+
+ if (node == NULL) {
+ Py_INCREF(Py_None);
+ return (Py_None);
+ }
+ ret =
+ PyCObject_FromVoidPtrAndDesc((void *) node, (char *) "virInterfacePtr",
+ NULL);
+ return (ret);
+}
+
+PyObject *
libvirt_virStoragePoolPtrWrap(virStoragePoolPtr node)
{
PyObject *ret;