qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 18/30] qmp-commands: move 'query-mice' doc to schema


From: Marc-André Lureau
Subject: [Qemu-devel] [PATCH 18/30] qmp-commands: move 'query-mice' doc to schema
Date: Tue, 13 Sep 2016 17:01:57 +0400

Signed-off-by: Marc-André Lureau <address@hidden>
---
 docs/qmp-commands.txt | 35 -----------------------------------
 qapi-schema.json      | 20 ++++++++++++++++++++
 2 files changed, 20 insertions(+), 35 deletions(-)

diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt
index f2b7369..c066833 100644
--- a/docs/qmp-commands.txt
+++ b/docs/qmp-commands.txt
@@ -2213,41 +2213,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 ea554bf..d9e45dc 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -1104,6 +1104,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'] }
 
-- 
2.10.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]