From: Daniel P. Berrange Date: Thu, 4 Feb 2010 16:12:01 +0000 (+0000) Subject: Introduce public API for cancelling async domain jobs X-Git-Tag: v0.7.7~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fee63fe1c8c07facbb2662c8b1c721e8ec87c9d;p=thirdparty%2Flibvirt.git Introduce public API for cancelling async domain jobs 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() --- diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in index 62044158b4..0d1b5b5aca 100644 --- a/include/libvirt/libvirt.h.in +++ b/include/libvirt/libvirt.h.in @@ -1834,6 +1834,7 @@ struct _virDomainJobInfo { int virDomainGetJobInfo(virDomainPtr dom, virDomainJobInfoPtr info); +int virDomainAbortJob(virDomainPtr dom); #ifdef __cplusplus