[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 15/30] qmp-commands: move 'change' doc to schema
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH 15/30] qmp-commands: move 'change' doc to schema |
Date: |
Thu, 22 Sep 2016 13:22:50 +0400 |
Signed-off-by: Marc-André Lureau <address@hidden>
---
docs/qmp-commands.txt | 27 ---------------------------
qapi-schema.json | 17 +++++++++++++++++
2 files changed, 17 insertions(+), 27 deletions(-)
diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt
index 0082101..d5ad1de 100644
--- a/docs/qmp-commands.txt
+++ b/docs/qmp-commands.txt
@@ -70,33 +70,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 9d78854..5529e4a 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -2784,6 +2784,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'} }
--
2.10.0
- [Qemu-devel] [PATCH 05/30] qmp-commands: move 'set_link' doc to schema, (continued)
- [Qemu-devel] [PATCH 05/30] qmp-commands: move 'set_link' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 06/30] qmp-commands: move 'balloon' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 07/30] qmp-commands: move 'transaction' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 08/30] qmp-commands: move 'human-monitor-command' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 09/30] qmp-commands: move 'migrate_cancel' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 10/30] qmp-commands: move 'migrate_set_downtime' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 11/30] qmp-commands: move 'migrate_set_speed' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 12/30] qmp-commands: move 'query-migrate-cache-size' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 13/30] qmp-commands: move 'set_password' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 14/30] qmp-commands: move 'expire_password' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 15/30] qmp-commands: move 'change' doc to schema,
Marc-André Lureau <=
- [Qemu-devel] [PATCH 16/30] qmp-commands: move 'migrate' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 17/30] qmp-commands: move 'migrate-incoming' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 18/30] qmp-commands: move 'xen-save-devices-state' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 19/30] qmp-commands: move 'xen-set-global-dirty-log' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 20/30] qmp-commands: move 'device_del' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 21/30] qmp-commands: move 'dump-guest-memory' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 22/30] qmp-commands: move 'query-dump-guest-memory-capability' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 23/30] qmp-commands: move 'dump-skeys' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 24/30] qmp-commands: move 'netdev_add' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 25/30] qmp-commands: move 'netdev_del' doc to schema, Marc-André Lureau, 2016/09/22