aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-23 10:13:09 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-01-16 09:15:25 +0100
commit90e365c054f64c970697b735d947834f6b65e90e (patch)
tree7ac6fb3293d89ec06c5df219397215618224bfb4
parent4055aa8d409262188bc0fc139e8d5be38cfd4f3d (diff)
downloadqemu-90e365c054f64c970697b735d947834f6b65e90e.zip
qemu-90e365c054f64c970697b735d947834f6b65e90e.tar.gz
qemu-90e365c054f64c970697b735d947834f6b65e90e.tar.bz2
qmp-commands: move 'query-chardev-backends' 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.txt32
-rw-r--r--qapi-schema.json21
2 files changed, 21 insertions, 32 deletions
diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt
index ef7366e..46d6abe 100644
--- a/docs/qmp-commands.txt
+++ b/docs/qmp-commands.txt
@@ -1690,38 +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-backends
--------------
-
-List available character device backends.
-
-Each backend is represented by a json-object, the returned value is a json-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
-----------
diff --git a/qapi-schema.json b/qapi-schema.json
index 5bab989..8fd1e49 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -353,6 +353,27 @@
# 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'] }