From 5db6670347d3e599ee1e82f6400bbf387e129b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 23 Jun 2016 16:31:17 +0200 Subject: [PATCH] qmp-events: move 'SPICE_CONNECTED' 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-events.txt | 25 ------------------------- qapi/event.json | 10 ++++++++++ 2 files changed, 10 insertions(+), 25 deletions(-) diff --git a/docs/qmp-events.txt b/docs/qmp-events.txt index c9d44f3146..5c121c55ac 100644 --- a/docs/qmp-events.txt +++ b/docs/qmp-events.txt @@ -131,31 +131,6 @@ Flush operation: Note: this event is rate-limited. -SPICE_CONNECTED ---------------- - -Emitted when a SPICE client connects. - -Data: - -- "server": Server information (json-object) - - "host": IP address (json-string) - - "port": port number (json-string) - - "family": address family (json-string, "ipv4" or "ipv6") -- "client": Client information (json-object) - - "host": IP address (json-string) - - "port": port number (json-string) - - "family": address family (json-string, "ipv4" or "ipv6") - -Example: - -{ "timestamp": {"seconds": 1290688046, "microseconds": 388707}, - "event": "SPICE_CONNECTED", - "data": { - "server": { "port": "5920", "family": "ipv4", "host": "127.0.0.1"}, - "client": {"port": "52873", "family": "ipv4", "host": "127.0.0.1"} -}} - SPICE_DISCONNECTED ------------------ diff --git a/qapi/event.json b/qapi/event.json index 9f380ee2b4..5c971a45de 100644 --- a/qapi/event.json +++ b/qapi/event.json @@ -319,6 +319,16 @@ # @client: client information # # Since: 0.14.0 +# +# Example: +# +# <- { "timestamp": {"seconds": 1290688046, "microseconds": 388707}, +# "event": "SPICE_CONNECTED", +# "data": { +# "server": { "port": "5920", "family": "ipv4", "host": "127.0.0.1"}, +# "client": {"port": "52873", "family": "ipv4", "host": "127.0.0.1"} +# }} +# ## { 'event': 'SPICE_CONNECTED', 'data': { 'server': 'SpiceBasicInfo',