Received: from eggs.gnu.org ([2001:4830:134:3::10]:47927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnMH-0004TD-O0 for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:02:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjnMC-0004Kv-0W for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:02:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnMB-0004Kl-RH for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:02:35 -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 649B565723 for ; Tue, 13 Sep 2016 13:02:35 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 13 Sep 2016 17:01:45 +0400 Message-Id: <20160913130209.695-7-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 06/30] qmp-commands: move 'query-chardev' 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 | 36 ------------------------------------ qapi-schema.json | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 36 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index 6814bd5..f3da6f2 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -1673,42 +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 -------------- - -Each device is represented by a json-object. The returned value is a jso= n-array -of all devices. - -Each json-object contain the following: - -- "label": device's label (json-string) -- "filename": device's file (json-string) -- "frontend-open": open/closed state of the frontend device attached to = this - backend (json-bool) - -Example: - --> { "execute": "query-chardev" } -<- { - "return": [ - { - "label": "charchannel0", - "filename": "unix:/var/lib/libvirt/qemu/seabios.rhel6.agent,= server", - "frontend-open": false - }, - { - "label": "charmonitor", - "filename": "unix:/var/lib/libvirt/qemu/seabios.rhel6.monito= r,server", - "frontend-open": true - }, - { - "label": "charserial0", - "filename": "pty:/dev/pts/2", - "frontend-open": true - } - ] - } - query-chardev-backends ------------- =20 diff --git a/qapi-schema.json b/qapi-schema.json index 60007f1..f015e61 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -297,6 +297,30 @@ # Returns: a list of @ChardevInfo # # Since: 0.14.0 +# +# Example: +# +# -> { "execute": "query-chardev" } +# <- { +# "return": [ +# { +# "label": "charchannel0", +# "filename": "unix:/var/lib/libvirt/qemu/seabios.rhel6.agen= t,server", +# "frontend-open": false +# }, +# { +# "label": "charmonitor", +# "filename": "unix:/var/lib/libvirt/qemu/seabios.rhel6.moni= tor,server", +# "frontend-open": true +# }, +# { +# "label": "charserial0", +# "filename": "pty:/dev/pts/2", +# "frontend-open": true +# } +# ] +# } +# ## { 'command': 'query-chardev', 'returns': ['ChardevInfo'] } =20 --=20 2.10.0