aboutsummaryrefslogtreecommitdiff
path: root/qmp-commands.hx
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2011-09-06 18:58:53 +0200
committerKevin Wolf <kwolf@redhat.com>2011-09-12 15:17:21 +0200
commite4def80b36231e161b91fa984cd0d73b45668f00 (patch)
tree655c55c6efac3d7a17e3a004ac9889ba32342415 /qmp-commands.hx
parent9e6a4c9177bc95aa04438458d75442e80db9ad33 (diff)
downloadqemu-e4def80b36231e161b91fa984cd0d73b45668f00.zip
qemu-e4def80b36231e161b91fa984cd0d73b45668f00.tar.gz
qemu-e4def80b36231e161b91fa984cd0d73b45668f00.tar.bz2
block: Show whether the virtual tray is open in info block
Need to ask the device, so this requires new BlockDevOps member is_tray_open(). Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qmp-commands.hx')
-rw-r--r--qmp-commands.hx2
1 files changed, 2 insertions, 0 deletions
diff --git a/qmp-commands.hx b/qmp-commands.hx
index 27cc66e..d1c2c59 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -1131,6 +1131,8 @@ Each json-object contain the following:
- Possible values: "unknown"
- "removable": true if the device is removable, false otherwise (json-bool)
- "locked": true if the device is locked, false otherwise (json-bool)
+- "tray-open": only present if removable, true if the device has a tray,
+ and it is open (json-bool)
- "inserted": only present if the device is inserted, it is a json-object
containing the following:
- "file": device file name (json-string)