summaryrefslogtreecommitdiffstats
path: root/server/reds.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-10-11 16:30:58 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-10-12 11:11:26 +0200
commit97f33fa86aa6edd25111b173dc0d9599ac29f879 (patch)
tree66411081e1141b853de82195ecf06ec6a23998b0 /server/reds.h
parentf8c6e1c42a16d6b00f058389ee79baef7c0ff5d4 (diff)
downloadspice-97f33fa86aa6edd25111b173dc0d9599ac29f879.tar.gz
spice-97f33fa86aa6edd25111b173dc0d9599ac29f879.tar.xz
spice-97f33fa86aa6edd25111b173dc0d9599ac29f879.zip
server: add channel notifications.
This patch adds a channel event callback to the spice core interface. This new callback will be called for three events: (1) A new connection has been established. (2) The channel is ready (i.e. authentication is done, link message verification passed all tests, channel is ready to use). (3) Channel was disconnected. Qemu will use this to send notifications to the management app.
Diffstat (limited to 'server/reds.h')
-rw-r--r--server/reds.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/reds.h b/server/reds.h
index 6eed02be..e95aea5e 100644
--- a/server/reds.h
+++ b/server/reds.h
@@ -35,6 +35,8 @@ typedef struct RedsStreamContext {
int shutdown;
SSL *ssl;
+ SpiceChannelEventInfo info;
+
int (*cb_write)(void *, void *, int);
int (*cb_read)(void *, void *, int);