aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-23 13:42:58 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-01-16 09:15:30 +0100
commit7cfee8d94367deee91776897c1b33ad99bd54fbf (patch)
treeff9df5f07226ba1fd0dc5c7b81044a4e6c1371e9
parent2212092e11db4c92416f989db9000737daaf9d37 (diff)
qmp-commands: move 'chardev-remove' 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.txt14
-rw-r--r--qapi-schema.json6
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'} }