From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnMM-0004Ve-1l for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:02:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjnMF-0004Ls-Ck for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:02:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60146) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnMF-0004Lg-7K for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:02:39 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (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 B928DB9AD9 for ; Tue, 13 Sep 2016 13:02:38 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 13 Sep 2016 17:01:46 +0400 Message-Id: <20160913130209.695-8-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 07/30] qmp-commands: move 'query-chardev-backends' 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 | 32 -------------------------------- qapi-schema.json | 25 +++++++++++++++++++++++-- 2 files changed, 23 insertions(+), 34 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index f3da6f2..0dae7fa 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -1673,38 +1673,6 @@ named schema entities. Entities are commands, eve= nts and various types. See docs/qapi-code-gen.txt for information on their structure and intended use. =20 -query-chardev-backends -------------- - -List available character device backends. - -Each backend is represented by a json-object, the returned value is a js= on-array -of all backends. - -Each json-object contains: - -- "name": backend name (json-string) - -Example: - --> { "execute": "query-chardev-backends" } -<- { - "return":[ - { - "name":"udp" - }, - { - "name":"tcp" - }, - { - "name":"unix" - }, - { - "name":"spiceport" - } - ] - } - query-block ----------- =20 diff --git a/qapi-schema.json b/qapi-schema.json index f015e61..ae96abe 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -327,7 +327,7 @@ ## # @ChardevBackendInfo: # -# Information about a character device backend +# Information about a character device backend. # # @name: The backend name # @@ -338,11 +338,32 @@ ## # @query-chardev-backends: # -# Returns information about character device backends. +# Returns information about available character device backends. # # Returns: a list of @ChardevBackendInfo # # Since: 2.0 +# +# Example: +# +# -> { "execute": "query-chardev-backends" } +# <- { +# "return":[ +# { +# "name":"udp" +# }, +# { +# "name":"tcp" +# }, +# { +# "name":"unix" +# }, +# { +# "name":"spiceport" +# } +# ] +# } +# ## { 'command': 'query-chardev-backends', 'returns': ['ChardevBackendInfo']= } =20 --=20 2.10.0