summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-23 10:12:15 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-01-16 09:15:25 +0100
commit4055aa8d409262188bc0fc139e8d5be38cfd4f3d (patch)
tree6e045fcd498e5e659e176379588a517e69eed0fc
parent0ed90f77e833037c126f5e5e76956d256a655e5f (diff)
downloadfocaccia-qemu-4055aa8d409262188bc0fc139e8d5be38cfd4f3d.tar.gz
focaccia-qemu-4055aa8d409262188bc0fc139e8d5be38cfd4f3d.zip
qmp-commands: move 'query-chardev' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r--docs/qmp-commands.txt36
-rw-r--r--qapi-schema.json24
2 files changed, 24 insertions, 36 deletions
diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt
index ab0e38c89f..ef7366eb4e 100644
--- a/docs/qmp-commands.txt
+++ b/docs/qmp-commands.txt
@@ -1690,42 +1690,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 12014a24fd..5bab9894a9 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -307,6 +307,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'] }