Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> --- 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