From a4143a845a6d4b078b34aa3c750566cfdea6192a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 23 Jun 2016 10:15:20 +0200 Subject: [PATCH] qmp-commands: move 'ringbuf-write' doc to schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-André Lureau Signed-off-by: Markus Armbruster --- 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 46d6abe612..c22c6f11ca 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -334,26 +334,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 8fd1e49143..cff9ae25ed 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -410,6 +410,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',