[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 06/30] qmp-commands: move 'query-chardev' doc to sch
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH 06/30] qmp-commands: move 'query-chardev' doc to schema |
Date: |
Tue, 13 Sep 2016 17:01:45 +0400 |
Signed-off-by: Marc-André Lureau <address@hidden>
---
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, events
and various
types. See docs/qapi-code-gen.txt for information on their structure
and intended use.
-query-chardev
--------------
-
-Each device is represented by a json-object. The returned value is a json-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.monitor,server",
- "frontend-open": true
- },
- {
- "label": "charserial0",
- "filename": "pty:/dev/pts/2",
- "frontend-open": true
- }
- ]
- }
-
query-chardev-backends
-------------
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.agent,server",
+# "frontend-open": false
+# },
+# {
+# "label": "charmonitor",
+# "filename":
"unix:/var/lib/libvirt/qemu/seabios.rhel6.monitor,server",
+# "frontend-open": true
+# },
+# {
+# "label": "charserial0",
+# "filename": "pty:/dev/pts/2",
+# "frontend-open": true
+# }
+# ]
+# }
+#
##
{ 'command': 'query-chardev', 'returns': ['ChardevInfo'] }
--
2.10.0
- [Qemu-devel] [PATCH 00/30] Move qapi documentation to schema (part 1/5), Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 01/30] qmp-commands: move 'add_client' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 02/30] qmp-commands: move 'query-name' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 03/30] qmp-commands: move 'query-kvm' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 05/30] qmp-commands: move 'query-uuid' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 04/30] qmp-commands: move 'query-status' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 06/30] qmp-commands: move 'query-chardev' doc to schema,
Marc-André Lureau <=
- [Qemu-devel] [PATCH 07/30] qmp-commands: move 'query-chardev-backends' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 08/30] qmp-commands: move 'ringbuf-write' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 09/30] qmp-commands: move 'ringbuf-read' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 11/30] qmp-commands: move 'query-migrate' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 10/30] qmp-commands: move 'query-events' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 12/30] qmp-commands: move 'migrate-set-capabilities' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 13/30] qmp-commands: move 'query-migrate-capabilities' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 14/30] qmp-commands: move 'migrate-set-parameters' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 15/30] qmp-commands: move 'query-migrate-parameters' doc to schema, Marc-André Lureau, 2016/09/13