From 7cfee8d94367deee91776897c1b33ad99bd54fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 23 Jun 2016 13:42:58 +0200 Subject: [PATCH] qmp-commands: move 'chardev-remove' 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 | 14 -------------- qapi-schema.json | 6 ++++++ 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index 393e2280bf..e5ac6a162c 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -1252,20 +1252,6 @@ Example: -> { "execute": "query-tpm-types" } <- { "return": [ "passthrough" ] } -chardev-remove --------------- - -Remove a chardev. - -Arguments: - -- "id": the chardev's ID, must exist and not be in use (json-string) - -Example: - --> { "execute": "chardev-remove", "arguments": { "id" : "foo" } } -<- { "return": {} } - query-rx-filter --------------- diff --git a/qapi-schema.json b/qapi-schema.json index 9b6a8d35b8..e213873e0c 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -4873,6 +4873,12 @@ # Returns: Nothing on success # # Since: 1.4 +# +# Example: +# +# -> { "execute": "chardev-remove", "arguments": { "id" : "foo" } } +# <- { "return": {} } +# ## { 'command': 'chardev-remove', 'data': {'id': 'str'} }