From 66c2f5a56ce1a1b85b133ad39ee7cc1a599126cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 23 Jun 2016 10:18:23 +0200 Subject: [PATCH] qmp-commands: move 'query-events' doc to schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-André Lureau Signed-off-by: Markus Armbruster --- docs/qmp-commands.txt | 28 ---------------------------- qapi-schema.json | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 28 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index 817cc5a721..f51ffbf442 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -1607,34 +1607,6 @@ Example: Note: This example has been shortened as the real response is too long. -query-events --------------- - -List QMP available events. - -Each event is represented by a json-object, the returned value is a json-array -of all events. - -Each json-object contains: - -- "name": event's name (json-string) - -Example: - --> { "execute": "query-events" } -<- { - "return":[ - { - "name":"SHUTDOWN" - }, - { - "name":"RESET" - } - ] - } - -Note: This example has been shortened as the real response is too long. - query-qmp-schema ---------------- diff --git a/qapi-schema.json b/qapi-schema.json index dfd3299774..b621528f85 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -479,6 +479,23 @@ # Returns: A list of @EventInfo for all supported events # # Since: 1.2.0 +# +# Example: +# +# -> { "execute": "query-events" } +# <- { +# "return": [ +# { +# "name":"SHUTDOWN" +# }, +# { +# "name":"RESET" +# } +# ] +# } +# +# Note: This example has been shortened as the real response is too long. +# ## { 'command': 'query-events', 'returns': ['EventInfo'] }