[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 10/30] qmp-commands: move 'query-events' doc to sche
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH 10/30] qmp-commands: move 'query-events' doc to schema |
Date: |
Tue, 13 Sep 2016 17:01:49 +0400 |
Signed-off-by: Marc-André Lureau <address@hidden>
---
docs/qmp-commands.txt | 28 ----------------------------
qapi-schema.json | 19 ++++++++++++++++++-
2 files changed, 18 insertions(+), 29 deletions(-)
diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt
index 4d1907a..1daa4ed 100644
--- a/docs/qmp-commands.txt
+++ b/docs/qmp-commands.txt
@@ -1590,34 +1590,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 45aa6b8..15354b0 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -464,11 +464,28 @@
##
# @query-events:
#
-# Return a list of supported QMP events by this server
+# Return a list of supported QMP events by this server.
#
# 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'] }
--
2.10.0
- [Qemu-devel] [PATCH 02/30] qmp-commands: move 'query-name' doc to schema, (continued)
- [Qemu-devel] [PATCH 02/30] qmp-commands: move 'query-name' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 03/30] qmp-commands: move 'query-kvm' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 05/30] qmp-commands: move 'query-uuid' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 04/30] qmp-commands: move 'query-status' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 06/30] qmp-commands: move 'query-chardev' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 07/30] qmp-commands: move 'query-chardev-backends' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 08/30] qmp-commands: move 'ringbuf-write' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 09/30] qmp-commands: move 'ringbuf-read' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 11/30] qmp-commands: move 'query-migrate' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 10/30] qmp-commands: move 'query-events' doc to schema,
Marc-André Lureau <=
- [Qemu-devel] [PATCH 12/30] qmp-commands: move 'migrate-set-capabilities' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 13/30] qmp-commands: move 'query-migrate-capabilities' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 14/30] qmp-commands: move 'migrate-set-parameters' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 15/30] qmp-commands: move 'query-migrate-parameters' doc to schema, Marc-André Lureau, 2016/09/13