diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-11-26 22:59:03 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 09:41:23 -0600 |
commit | 0d1ea871b09fc74b4a2085150980b43bd1973744 (patch) | |
tree | a970f0e1751e0a6e9bb3751ef1d5b72fa8b0385b /qemu-tool.c | |
parent | 5e23f480df7a451dab6f82c4f13520b089daaf0e (diff) | |
download | qemu-0d1ea871b09fc74b4a2085150980b43bd1973744.zip qemu-0d1ea871b09fc74b4a2085150980b43bd1973744.tar.gz qemu-0d1ea871b09fc74b4a2085150980b43bd1973744.tar.bz2 |
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 <amit.shah@redhat.com>.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-tool.c')
-rw-r--r-- | qemu-tool.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qemu-tool.c b/qemu-tool.c index b35ea8e..18b48af 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; |