aboutsummaryrefslogtreecommitdiff
path: root/qapi
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-23 15:57:27 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-01-16 09:19:48 +0100
commit01b7d4be5c5408365487851f3b8b1e6f10dfaa4b (patch)
tree87c52d5dd56a6eda169b4af2ba74c32c084036c2 /qapi
parent11a3dee1b965ac38baf319e8b00db79a889a0200 (diff)
downloadqemu-01b7d4be5c5408365487851f3b8b1e6f10dfaa4b.zip
qemu-01b7d4be5c5408365487851f3b8b1e6f10dfaa4b.tar.gz
qemu-01b7d4be5c5408365487851f3b8b1e6f10dfaa4b.tar.bz2
qmp-events: move 'DEVICE_TRAY_MOVED' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/block.json10
1 files changed, 10 insertions, 0 deletions
diff --git a/qapi/block.json b/qapi/block.json
index 6f57d70..22da914 100644
--- a/qapi/block.json
+++ b/qapi/block.json
@@ -248,6 +248,16 @@
# @tray-open: true if the tray has been opened or false if it has been closed
#
# Since: 1.1
+#
+# Example:
+#
+# <- { "event": "DEVICE_TRAY_MOVED",
+# "data": { "device": "ide1-cd0",
+# "id": "/machine/unattached/device[22]",
+# "tray-open": true
+# },
+# "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
+#
##
{ 'event': 'DEVICE_TRAY_MOVED',
'data': { 'device': 'str', 'id': 'str', 'tray-open': 'bool' } }