aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-23 10:34:48 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-01-16 09:15:26 +0100
commit60639df5c2368aea848bc9963e57603adf21e1c1 (patch)
tree4a14fb35a51a081c56de5a90136b29845893dcab
parent3c3ea00a8c65f73d41ad921333bbee7931414a4f (diff)
downloadqemu-60639df5c2368aea848bc9963e57603adf21e1c1.zip
qemu-60639df5c2368aea848bc9963e57603adf21e1c1.tar.gz
qemu-60639df5c2368aea848bc9963e57603adf21e1c1.tar.bz2
qmp-commands: move 'query-mice' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r--docs/qmp-commands.txt35
-rw-r--r--qapi-schema.json20
2 files changed, 20 insertions, 35 deletions
diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt
index 536bddf..693ede6 100644
--- a/docs/qmp-commands.txt
+++ b/docs/qmp-commands.txt
@@ -2229,41 +2229,6 @@ Example:
Note: This example has been shortened as the real response is too long.
-query-mice
-----------
-
-Show VM mice information.
-
-Each mouse is represented by a json-object, the returned value is a json-array
-of all mice.
-
-The mouse json-object contains the following:
-
-- "name": mouse's name (json-string)
-- "index": mouse's index (json-int)
-- "current": true if this mouse is receiving events, false otherwise (json-bool)
-- "absolute": true if the mouse generates absolute input events (json-bool)
-
-Example:
-
--> { "execute": "query-mice" }
-<- {
- "return":[
- {
- "name":"QEMU Microsoft Mouse",
- "index":0,
- "current":false,
- "absolute":false
- },
- {
- "name":"QEMU PS/2 Mouse",
- "index":1,
- "current":true,
- "absolute":true
- }
- ]
- }
-
query-vnc
---------
diff --git a/qapi-schema.json b/qapi-schema.json
index 116b48b..02ae26a 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -1187,6 +1187,26 @@
# Returns: a list of @MouseInfo for each device
#
# Since: 0.14.0
+#
+# Example:
+#
+# -> { "execute": "query-mice" }
+# <- { "return": [
+# {
+# "name":"QEMU Microsoft Mouse",
+# "index":0,
+# "current":false,
+# "absolute":false
+# },
+# {
+# "name":"QEMU PS/2 Mouse",
+# "index":1,
+# "current":true,
+# "absolute":true
+# }
+# ]
+# }
+#
##
{ 'command': 'query-mice', 'returns': ['MouseInfo'] }