]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Introduce public API for cancelling async domain jobs
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 4 Feb 2010 16:12:01 +0000 (16:12 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 2 Mar 2010 16:23:31 +0000 (16:23 +0000)
The new virDomainAbortJob() method provides a way for a second
thread to abort an ongoing job run by another thread. This
extends to any API with  which the virDomainGetJobInfo() API
is intended to work. Cancellation is not guarenteed, rather best
effort on part of the hypervisor and not required to be implmented.

* include/libvirt/libvirt.h.in: Define virDomainAbortJob()

include/libvirt/libvirt.h.in

index 62044158b417408ce2a7dfbf781b7792e830d8b5..0d1b5b5aca71a075bb000dd2cd29aa6bfd616854 100644 (file)
@@ -1834,6 +1834,7 @@ struct _virDomainJobInfo {
 
 int virDomainGetJobInfo(virDomainPtr dom,
                         virDomainJobInfoPtr info);
+int virDomainAbortJob(virDomainPtr dom);
 
 
 #ifdef __cplusplus