qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 07/30] qmp-commands: move 'query-chardev-backends' d


From: Marc-André Lureau
Subject: [Qemu-devel] [PATCH 07/30] qmp-commands: move 'query-chardev-backends' doc to schema
Date: Tue, 13 Sep 2016 17:01:46 +0400

Signed-off-by: Marc-André Lureau <address@hidden>
---
 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, 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 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'] }
 
-- 
2.10.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]