From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9vd3-0000ej-DN for qemu-devel@nongnu.org; Wed, 23 Jul 2014 08:26:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9vcu-0001wC-FB for qemu-devel@nongnu.org; Wed, 23 Jul 2014 08:26:41 -0400 Received: from qmta10.emeryville.ca.mail.comcast.net ([76.96.30.17]:57001) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9vcu-0001vs-7O for qemu-devel@nongnu.org; Wed, 23 Jul 2014 08:26:32 -0400 From: Eric Blake Date: Wed, 23 Jul 2014 06:26:15 -0600 Message-Id: <1406118378-11217-3-git-send-email-eblake@redhat.com> In-Reply-To: <1406118378-11217-1-git-send-email-eblake@redhat.com> References: <1406118378-11217-1-git-send-email-eblake@redhat.com> Subject: [Qemu-devel] [PATCH v2 for-2.1 2/5] docs: split SPICE_* event docs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, wenchaoqemu@gmail.com, armbru@redhat.com, lcapitulino@redhat.com For consistency with the rest of this file, every event should be listed in isolation. Compare how commit 7cfadb6b split SPICE_CONNECTED and SPICE_DISCONNECTED into separate qmp events. * docs/qmp/qmp-events.txt (SPICE_CONNECTED, SPICE_DISCONNECTED): Split. Signed-off-by: Eric Blake --- docs/qmp/qmp-events.txt | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/docs/qmp/qmp-events.txt b/docs/qmp/qmp-events.txt index 524eadf..9b7ee7c 100644 --- a/docs/qmp/qmp-events.txt +++ b/docs/qmp/qmp-events.txt @@ -337,10 +337,10 @@ Example: Note: If the command-line option "-no-shutdown" has been specified, a STOP event will eventually follow the SHUTDOWN event. -SPICE_CONNECTED, SPICE_DISCONNECTED ------------------------------------ +SPICE_CONNECTED +--------------- -Emitted when a SPICE client connects or disconnects. +Emitted when a SPICE client connects. Data: @@ -362,6 +362,31 @@ Example: "client": {"port": "52873", "family": "ipv4", "host": "127.0.0.1"} }} +SPICE_DISCONNECTED +------------------ + +Emitted when a SPICE client disconnects. + +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_DISCONNECTED", + "data": { + "server": { "port": "5920", "family": "ipv4", "host": "127.0.0.1"}, + "client": {"port": "52873", "family": "ipv4", "host": "127.0.0.1"} +}} + SPICE_INITIALIZED ----------------- -- 1.9.3