From 4fee63fe1c8c07facbb2662c8b1c721e8ec87c9d Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Thu, 4 Feb 2010 16:12:01 +0000 Subject: [PATCH] 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() --- include/libvirt/libvirt.h.in | 1 + 1 file changed, 1 insertion(+) 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