qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 08/30] qmp-commands: move 'ringbuf-write' doc to sch


From: Marc-André Lureau
Subject: [Qemu-devel] [PATCH 08/30] qmp-commands: move 'ringbuf-write' doc to schema
Date: Tue, 13 Sep 2016 17:01:47 +0400

Signed-off-by: Marc-André Lureau <address@hidden>
---
 docs/qmp-commands.txt | 20 --------------------
 qapi-schema.json      |  9 +++++++++
 2 files changed, 9 insertions(+), 20 deletions(-)

diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt
index 0dae7fa..44a7632 100644
--- a/docs/qmp-commands.txt
+++ b/docs/qmp-commands.txt
@@ -332,26 +332,6 @@ Example:
 
 Note: inject-nmi fails when the guest doesn't support injecting.
 
-ringbuf-write
--------------
-
-Write to a ring buffer character device.
-
-Arguments:
-
-- "device": ring buffer character device name (json-string)
-- "data": data to write (json-string)
-- "format": data format (json-string, optional)
-          - Possible values: "utf8" (default), "base64"
-
-Example:
-
--> { "execute": "ringbuf-write",
-                "arguments": { "device": "foo",
-                               "data": "abcdefgh",
-                               "format": "utf8" } }
-<- { "return": {} }
-
 ringbuf-read
 -------------
 
diff --git a/qapi-schema.json b/qapi-schema.json
index ae96abe..c23c0cb 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -400,6 +400,15 @@
 # Returns: Nothing on success
 #
 # Since: 1.4
+#
+# Example:
+#
+# -> { "execute": "ringbuf-write",
+#                 "arguments": { "device": "foo",
+#                                "data": "abcdefgh",
+#                                "format": "utf8" } }
+# <- { "return": {} }
+#
 ##
 { 'command': 'ringbuf-write',
   'data': {'device': 'str', 'data': 'str',
-- 
2.10.0




reply via email to

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