summaryrefslogtreecommitdiffstats
path: root/typewrappers.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2010-02-03 11:31:45 +0000
committerDaniel P. Berrange <berrange@redhat.com>2010-03-02 16:22:30 +0000
commit812ed7a260b6003926c903b1938e341dedc44e35 (patch)
tree3507c0e366c469f2b311c1f21e5b53e8efd8bfd4 /typewrappers.c
parent555abf6ad9753193a50ab0810b754db86bc82610 (diff)
downloadlibvirt-python-split-812ed7a260b6003926c903b1938e341dedc44e35.tar.gz
libvirt-python-split-812ed7a260b6003926c903b1938e341dedc44e35.tar.xz
libvirt-python-split-812ed7a260b6003926c903b1938e341dedc44e35.zip
Introduce public API for domain async job handlingv0.7.7
Introduce a new public API that provides a way to get progress info on currently running jobs on a virDomainpPtr. APIs that are initially within scope of this idea are virDomainMigrate virDomainMigrateToURI virDomainSave virDomainRestore virDomainCoreDump These all take a potentially long time and benefit from monitoring. The virDomainJobInfo struct allows for various pieces of information to be reported - Percentage completion - Time - Overall data - Guest memory data - Guest disk/file data * include/libvirt/libvirt.h.in: Add virDomainGetJobInfo * python/generator.py, python/libvirt-override-api.xml, python/libvirt-override.c: Override for virDomainGetJobInfo API * python/typewrappers.c, python/typewrappers.h: Introduce wrapper for unsigned long long type
Diffstat (limited to 'typewrappers.c')
-rw-r--r--typewrappers.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/typewrappers.c b/typewrappers.c
index 9ba99de..b33822c 100644
--- a/typewrappers.c
+++ b/typewrappers.c
@@ -49,6 +49,14 @@ libvirt_longlongWrap(long long val)
}
PyObject *
+libvirt_ulonglongWrap(unsigned long long val)
+{
+ PyObject *ret;
+ ret = PyLong_FromUnsignedLongLong(val);
+ return (ret);
+}
+
+PyObject *
libvirt_charPtrWrap(char *str)
{
PyObject *ret;