diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2010-02-03 11:31:45 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2010-03-02 16:22:30 +0000 |
commit | 812ed7a260b6003926c903b1938e341dedc44e35 (patch) | |
tree | 3507c0e366c469f2b311c1f21e5b53e8efd8bfd4 /libvirt-override-api.xml | |
parent | 555abf6ad9753193a50ab0810b754db86bc82610 (diff) | |
download | libvirt-python-v6-812ed7a260b6003926c903b1938e341dedc44e35.tar.gz libvirt-python-v6-812ed7a260b6003926c903b1938e341dedc44e35.tar.xz libvirt-python-v6-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 'libvirt-override-api.xml')
-rw-r--r-- | libvirt-override-api.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libvirt-override-api.xml b/libvirt-override-api.xml index 76a6fd5..1260c0c 100644 --- a/libvirt-override-api.xml +++ b/libvirt-override-api.xml @@ -48,6 +48,11 @@ <return type='int *' info='the list of information or None in case of error'/> <arg name='domain' type='virDomainPtr' info='a domain object'/> </function> + <function name='virDomainGetJobInfo' file='python'> + <info>Extract information about an active job being processed for a domain.</info> + <return type='int *' info='the list of information or None in case of error'/> + <arg name='domain' type='virDomainPtr' info='a domain object'/> + </function> <function name='virNodeGetInfo' file='python'> <info>Extract hardware information about the Node.</info> <return type='int *' info='the list of information or None in case of error'/> |