summaryrefslogtreecommitdiff
path: root/src/conf/domain_event.h
diff options
context:
space:
mode:
authorAdam Litke <agl@us.ibm.com>2011-06-14 09:36:53 -0500
committerEric Blake <eblake@redhat.com>2011-06-14 22:48:42 -0600
commit12cd77a0c58a80179182f7d09e8e73f9f66b4677 (patch)
tree1f500f4fa624aaf2e649737722163d6fa71acad1 /src/conf/domain_event.h
parentd74b86f5d6ecae3d18a391f90a918fcac75914db (diff)
downloadlibvirt-12cd77a0c58a80179182f7d09e8e73f9f66b4677.tar.gz
Asynchronous event for BlockPull completion
When an operation started by virDomainBlockPullAll completes (either with success or with failure), raise an event to indicate the final status. This allows an API user to avoid polling on virDomainBlockPullInfo if they would prefer to use the event mechanism. * daemon/remote.c: Dispatch events to client * include/libvirt/libvirt.h.in: Define event ID and callback signature * src/conf/domain_event.c, src/conf/domain_event.h, src/libvirt_private.syms: Extend API to handle the new event * src/qemu/qemu_driver.c: Connect to the QEMU monitor event for block_stream completion and emit a libvirt block pull event * src/remote/remote_driver.c: Receive and dispatch events to application * src/remote/remote_protocol.x: Wire protocol definition for the event * src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h, src/qemu/qemu_monitor_json.c: Watch for BLOCK_STREAM_COMPLETED event from QEMU monitor Signed-off-by: Adam Litke <agl@us.ibm.com>
Diffstat (limited to 'src/conf/domain_event.h')
-rw-r--r--src/conf/domain_event.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/conf/domain_event.h b/src/conf/domain_event.h
index 68dc8a8d3d..a80868b724 100644
--- a/src/conf/domain_event.h
+++ b/src/conf/domain_event.h
@@ -170,7 +170,12 @@ virDomainEventPtr virDomainEventGraphicsNewFromObj(virDomainObjPtr obj,
virDomainEventPtr virDomainEventControlErrorNewFromDom(virDomainPtr dom);
virDomainEventPtr virDomainEventControlErrorNewFromObj(virDomainObjPtr obj);
-
+virDomainEventPtr virDomainEventBlockPullNewFromObj(virDomainObjPtr obj,
+ const char *path,
+ int status);
+virDomainEventPtr virDomainEventBlockPullNewFromDom(virDomainPtr dom,
+ const char *path,
+ int status);
int virDomainEventQueuePush(virDomainEventQueuePtr evtQueue,
virDomainEventPtr event);