From 0d1ea871b09fc74b4a2085150980b43bd1973744 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Thu, 26 Nov 2009 22:59:03 -0200 Subject: QMP: Asynchronous events infrastructure Asynchronous events are generated with a call to monitor_protocol_event(). This function builds the right data-type and emit the event right away. The emitted data is always a JSON object and its format is as follows: { "event": json-string, "timestamp": { "seconds": json-number, "microseconds": json-number }, "data": json-value } This design is based on ideas by Amit Shah . Signed-off-by: Luiz Capitulino Signed-off-by: Anthony Liguori --- qemu-tool.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qemu-tool.c') diff --git a/qemu-tool.c b/qemu-tool.c index b35ea8e1c2..18b48af319 100644 --- a/qemu-tool.c +++ b/qemu-tool.c @@ -56,6 +56,10 @@ int get_async_context_id(void) return 0; } +void monitor_protocol_event(MonitorEvent event, QObject *data) +{ +} + QEMUBH *qemu_bh_new(QEMUBHFunc *cb, void *opaque) { QEMUBH *bh; -- cgit v1.2.1