diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-06-23 15:10:40 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2017-01-16 09:19:47 +0100 |
commit | 8b0ffce442b9dbfaac65aa4eccdc4cdf5dc0203b (patch) | |
tree | 5f0bcb6c76296b99dc60c5b60e73e807fe3fc5c7 | |
parent | dd746afbb43989064cb98d2448d066da2e156aa8 (diff) |
qmp-commands: move 'query-commands' 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.txt | 28 | ||||
-rw-r--r-- | qapi/common.json | 17 |
2 files changed, 17 insertions, 28 deletions
diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index cb41253592..0e0416e3ba 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -209,34 +209,6 @@ Note: This command must be issued before issuing any other command. ================= -query-commands --------------- - -List QMP available commands. - -Each command is represented by a json-object, the returned value is a json-array -of all commands. - -Each json-object contain: - -- "name": command's name (json-string) - -Example: - --> { "execute": "query-commands" } -<- { - "return":[ - { - "name":"query-balloon" - }, - { - "name":"system_powerdown" - } - ] - } - -Note: This example has been shortened as the real response is too long. - query-qmp-schema ---------------- diff --git a/qapi/common.json b/qapi/common.json index d6a6d76176..b626647b2f 100644 --- a/qapi/common.json +++ b/qapi/common.json @@ -114,6 +114,23 @@ # Returns: A list of @CommandInfo for all supported commands # # Since: 0.14.0 +# +# Example: +# +# -> { "execute": "query-commands" } +# <- { +# "return":[ +# { +# "name":"query-balloon" +# }, +# { +# "name":"system_powerdown" +# } +# ] +# } +# +# Note: This example has been shortened as the real response is too long. +# ## { 'command': 'query-commands', 'returns': ['CommandInfo'] } |