Received: from eggs.gnu.org ([2001:4830:134:3::10]:48221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnMv-0004xL-N1 for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:03:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjnMu-0004aT-Ph for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:03:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnMu-0004aN-KR for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:03:20 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CDA63A70F for ; Tue, 13 Sep 2016 13:03:19 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 13 Sep 2016 17:01:57 +0400 Message-Id: <20160913130209.695-19-marcandre.lureau@redhat.com> In-Reply-To: <20160913130209.695-1-marcandre.lureau@redhat.com> References: <20160913130209.695-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 18/30] qmp-commands: move 'query-mice' doc to schema List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: eblake@redhat.com, armbru@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Signed-off-by: Marc-Andr=C3=A9 Lureau --- 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: =20 Note: This example has been shortened as the real response is too long. =20 -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 (js= on-bool) -- "absolute": true if the mouse generates absolute input events (json-bo= ol) - -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 --------- =20 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'] } =20 --=20 2.10.0