Received: from eggs.gnu.org ([2001:4830:134:3::10]:48365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnNI-0005Fr-Un for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:03:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjnNC-0004gW-3y for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:03:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnNB-0004gJ-RQ for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:03:38 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (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 68E381E27 for ; Tue, 13 Sep 2016 13:03:37 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 13 Sep 2016 17:02:01 +0400 Message-Id: <20160913130209.695-23-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 22/30] qmp-commands: move 'query-spice' 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 | 67 ---------------------------------------------= ------ qapi-schema.json | 42 ++++++++++++++++++++++++++++---- 2 files changed, 37 insertions(+), 72 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index ca75716..3b7af3b 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -2137,73 +2137,6 @@ Example: =20 Note: This example has been shortened as the real response is too long. =20 -query-spice ------------ - -Show SPICE server information. - -Return a json-object with server information. Connected clients are retu= rned -as a json-array of json-objects. - -The main json-object contains the following: - -- "enabled": true or false (json-bool) -- "host": server's IP address (json-string) -- "port": server's port number (json-int, optional) -- "tls-port": server's port number (json-int, optional) -- "auth": authentication method (json-string) - - Possible values: "none", "spice" -- "channels": a json-array of all active channels clients - -Channels are described by a json-object, each one contain the following: - -- "host": client's IP address (json-string) -- "family": address family (json-string) - - Possible values: "ipv4", "ipv6", "unix", "unknown" -- "port": client's port number (json-string) -- "connection-id": spice connection id. All channels with the same id - belong to the same spice session (json-int) -- "channel-type": channel type. "1" is the main control channel, filter= for - this one if you want track spice sessions only (json-i= nt) -- "channel-id": channel id. Usually "0", might be different needed when - multiple channels of the same type exist, such as multip= le - display channels in a multihead setup (json-int) -- "tls": whether the channel is encrypted (json-bool) - -Example: - --> { "execute": "query-spice" } -<- { - "return": { - "enabled": true, - "auth": "spice", - "port": 5920, - "tls-port": 5921, - "host": "0.0.0.0", - "channels": [ - { - "port": "54924", - "family": "ipv4", - "channel-type": 1, - "connection-id": 1804289383, - "host": "127.0.0.1", - "channel-id": 0, - "tls": true - }, - { - "port": "36710", - "family": "ipv4", - "channel-type": 4, - "connection-id": 1804289383, - "host": "127.0.0.1", - "channel-id": 0, - "tls": false - }, - [ ... more channels follow ... ] - ] - } - } - query-command-line-options -------------------------- =20 diff --git a/qapi-schema.json b/qapi-schema.json index f169b08..389eb9a 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -1616,7 +1616,7 @@ # @enabled: true if the SPICE server is enabled, false otherwise # # @migrated: true if the last guest migration completed and spice -# migration had completed as well. false otherwise. +# migration had completed as well. false otherwise. (since 1.= 4) # # @host: #optional The hostname the SPICE server is bound to. This depe= nds on # the name resolution on the host and may be an IP address. @@ -1634,9 +1634,7 @@ # # @mouse-mode: The mode in which the mouse cursor is displayed currently= . Can # be determined by the client or the server, or unknown if = spice -# server doesn't provide this information. -# -# Since: 1.1 +# server doesn't provide this information. (since: 1.1) # # @channels: a list of @SpiceChannel for each active spice channel # @@ -1650,11 +1648,45 @@ ## # @query-spice # -# Returns information about the current SPICE server +# Returns information about the current SPICE server. # # Returns: @SpiceInfo # # Since: 0.14.0 +# +# Example: +# +# -> { "execute": "query-spice" } +# <- { "return": { +# "enabled": true, +# "auth": "spice", +# "port": 5920, +# "tls-port": 5921, +# "host": "0.0.0.0", +# "channels": [ +# { +# "port": "54924", +# "family": "ipv4", +# "channel-type": 1, +# "connection-id": 1804289383, +# "host": "127.0.0.1", +# "channel-id": 0, +# "tls": true +# }, +# { +# "port": "36710", +# "family": "ipv4", +# "channel-type": 4, +# "connection-id": 1804289383, +# "host": "127.0.0.1", +# "channel-id": 0, +# "tls": false +# }, +# [ ... more channels follow ... ] +# ] +# } +# } +# ## { 'command': 'query-spice', 'returns': 'SpiceInfo' } =20 --=20 2.10.0