From 3aa4c6cd3932f5606f2faa59e5d7a45fe12417bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 23 Jun 2016 10:07:26 +0200 Subject: [PATCH] qmp-commands: move 'query-name' doc to schema MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-André Lureau Signed-off-by: Markus Armbruster --- docs/qmp-commands.txt | 14 -------------- qapi-schema.json | 6 ++++++ 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index a2594286f8..ceee41fb3b 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -2607,20 +2607,6 @@ Example: } } -query-name ----------- - -Show VM name. - -Return a json-object with the following information: - -- "name": VM's name (json-string, optional) - -Example: - --> { "execute": "query-name" } -<- { "return": { "name": "qemu-name" } } - query-uuid ---------- diff --git a/qapi-schema.json b/qapi-schema.json index a24e179991..e6d7063bc4 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -120,6 +120,12 @@ # Returns: @NameInfo of the guest # # Since: 0.14.0 +# +# Example: +# +# -> { "execute": "query-name" } +# <- { "return": { "name": "qemu-name" } } +# ## { 'command': 'query-name', 'returns': 'NameInfo' } -- 2.30.2