summaryrefslogtreecommitdiffstats
path: root/server/red_channel.h
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-11-07 12:42:38 +0200
committerAlon Levy <alevy@redhat.com>2011-02-07 19:22:44 +0200
commit33bede823aa2366d105a7ad9ad6949f8d4266fa9 (patch)
treec8608fe457ca6dec9cddc7d78983a53367a572d2 /server/red_channel.h
parentc322873cf0ada6af2c76a83dd7a046dc648ab8b9 (diff)
downloadspice-33bede823aa2366d105a7ad9ad6949f8d4266fa9.tar.gz
spice-33bede823aa2366d105a7ad9ad6949f8d4266fa9.tar.xz
spice-33bede823aa2366d105a7ad9ad6949f8d4266fa9.zip
server/red_channel: add public red_channel_default_peer_on_error
for later use in red_worker
Diffstat (limited to 'server/red_channel.h')
-rw-r--r--server/red_channel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/red_channel.h b/server/red_channel.h
index 7c973fd4..5135970f 100644
--- a/server/red_channel.h
+++ b/server/red_channel.h
@@ -200,6 +200,8 @@ void red_channel_init_outgoing_messages_window(RedChannel *channel);
int red_channel_handle_message(RedChannel *channel, uint32_t size,
uint16_t type, void *message);
+/* default error handler that disconnects channel */
+void red_channel_default_peer_on_error(RedChannel *channel);
/* when preparing send_data: should call reset, then init and then add_buf per buffer that is
being sent */