summaryrefslogtreecommitdiff
path: root/qapi/block-core.json
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-23 14:56:51 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-01-16 09:19:46 +0100
commit7f3c6f22daf758ce98d6f727cf4195770504454f (patch)
tree2ec9194469bb725caaf52136756e0b0232921443 /qapi/block-core.json
parent1133b1d674469d8dd5e2e02e5cf8f288ca8bf500 (diff)
downloadqemu-7f3c6f22daf758ce98d6f727cf4195770504454f.tar.gz
qmp-commands: move 'blockdev-close-tray' 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/block-core.json')
-rw-r--r--qapi/block-core.json15
1 files changed, 15 insertions, 0 deletions
diff --git a/qapi/block-core.json b/qapi/block-core.json
index 64b5ce7e66..a8f78c68ac 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -2974,6 +2974,21 @@
# @id: #optional The name or QOM path of the guest device (since: 2.8)
#
# Since: 2.5
+#
+# Example:
+#
+# -> { "execute": "blockdev-close-tray",
+# "arguments": { "id": "ide0-1-0" } }
+#
+# <- { "timestamp": { "seconds": 1418751345,
+# "microseconds": 272147 },
+# "event": "DEVICE_TRAY_MOVED",
+# "data": { "device": "ide1-cd0",
+# "id": "ide0-1-0",
+# "tray-open": false } }
+#
+# <- { "return": {} }
+#
##
{ 'command': 'blockdev-close-tray',
'data': { '*device': 'str',