aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-23 13:22:37 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-01-16 09:15:28 +0100
commit01387ae5604d9ef26f25134b3bf266c341b9e973 (patch)
tree8981445f461be1930cd5b6929d7068d69542f9d3
parent342816b975ec263b7663f7d2e025ed5b7fc1dc13 (diff)
downloadqemu-01387ae5604d9ef26f25134b3bf266c341b9e973.zip
qemu-01387ae5604d9ef26f25134b3bf266c341b9e973.tar.gz
qemu-01387ae5604d9ef26f25134b3bf266c341b9e973.tar.bz2
qmp-commands: move 'change' 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.txt27
-rw-r--r--qapi-schema.json17
2 files changed, 17 insertions, 27 deletions
diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt
index 65cab07..f4645f5 100644
--- a/docs/qmp-commands.txt
+++ b/docs/qmp-commands.txt
@@ -72,33 +72,6 @@ Example:
Note: The "force" argument defaults to false.
-change
-------
-
-Change a removable medium or VNC configuration.
-
-Arguments:
-
-- "device": device name (json-string)
-- "target": filename or item (json-string)
-- "arg": additional argument (json-string, optional)
-
-Examples:
-
-1. Change a removable medium
-
--> { "execute": "change",
- "arguments": { "device": "ide1-cd0",
- "target": "/srv/images/Fedora-12-x86_64-DVD.iso" } }
-<- { "return": {} }
-
-2. Change VNC password
-
--> { "execute": "change",
- "arguments": { "device": "vnc", "target": "password",
- "arg": "foobar1" } }
-<- { "return": {} }
-
screendump
----------
diff --git a/qapi-schema.json b/qapi-schema.json
index 398e5d3..e7c14b9 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -2874,6 +2874,23 @@
# change-vnc-password.
#
# Since: 0.14.0
+#
+# Example:
+#
+# 1. Change a removable medium
+#
+# -> { "execute": "change",
+# "arguments": { "device": "ide1-cd0",
+# "target": "/srv/images/Fedora-12-x86_64-DVD.iso" } }
+# <- { "return": {} }
+#
+# 2. Change VNC password
+#
+# -> { "execute": "change",
+# "arguments": { "device": "vnc", "target": "password",
+# "arg": "foobar1" } }
+# <- { "return": {} }
+#
##
{ 'command': 'change',
'data': {'device': 'str', 'target': 'str', '*arg': 'str'} }