summaryrefslogtreecommitdiffstats
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/types.c b/types.c
index b98beef..4ad4fa5 100644
--- a/types.c
+++ b/types.c
@@ -34,6 +34,18 @@ libvirt_longWrap(long val)
}
PyObject *
+libvirt_ulongWrap(unsigned long val)
+{
+ PyObject *ret;
+
+#ifdef DEBUG
+ printf("libvirt_ulongWrap: val = %lu\n", val);
+#endif
+ ret = PyLong_FromLong(val);
+ return (ret);
+}
+
+PyObject *
libvirt_longlongWrap(long long val)
{
PyObject *ret;