Introduce public API for domain async job handlingv0.7.7
commit812ed7a260b6003926c903b1938e341dedc44e35
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 3 Feb 2010 11:31:45 +0000 (3 11:31 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 2 Mar 2010 16:22:30 +0000 (2 16:22 +0000)
tree3507c0e366c469f2b311c1f21e5b53e8efd8bfd4
parent555abf6ad9753193a50ab0810b754db86bc82610
Introduce public API for domain async job handling

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
generator.py
libvirt-override-api.xml
libvirt-override.c
typewrappers.c
typewrappers.h