[libvirt] [PATCH 5/9] Introduce public API for cancelling async domain jobs
Daniel P. Berrange
berrange at redhat.com
Thu Feb 18 15:56:11 UTC 2010
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 | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in
index 51c0844..25f10c8 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
--
1.6.6
More information about the libvir-list
mailing list