diff options
| author | Daniel P. Berrange | 2012-05-21 18:59:51 +0200 |
|---|---|---|
| committer | Luiz Capitulino | 2012-06-04 18:49:35 +0200 |
| commit | 4860853d60ecea44b65e9cdefce980de3a641dce (patch) | |
| tree | 5577487a16c016864905dbd887a3f84be16db360 /blockdev.c | |
| parent | qapi: convert netdev_del (diff) | |
| download | qemu-4860853d60ecea44b65e9cdefce980de3a641dce.tar.gz qemu-4860853d60ecea44b65e9cdefce980de3a641dce.tar.xz qemu-4860853d60ecea44b65e9cdefce980de3a641dce.zip | |
Add 'query-events' command to QMP to query async events
Sometimes it is neccessary for an application to determine
whether a particular QMP event is available, so they can
decide whether to use compatibility code instead. This
introduces a new 'query-events' command to QMP to do just
that
{ "execute": "query-events" }
{"return": [{"name": "WAKEUP"},
{"name": "SUSPEND"},
{"name": "DEVICE_TRAY_MOVED"},
{"name": "BLOCK_JOB_CANCELLED"},
{"name": "BLOCK_JOB_COMPLETED"},
...snip...
{"name": "SHUTDOWN"}]}
* monitor.c: Turn MonitorEvent -> string conversion
into a lookup from a static table of constant strings.
Add impl of qmp_query_events monitor command handler
* qapi-schema.json, qmp-commands.hx: Define contract of
query-events command
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'blockdev.c')
0 files changed, 0 insertions, 0 deletions
