diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2010-12-03 03:29:03 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2010-12-05 19:46:16 +0100 |
commit | e36225ca448326724e2aef048a11f9cb5219b92b (patch) | |
tree | cb38d9f004f41539c2bb6c242552922fab8c4ad6 /gtk/channel-base.c | |
parent | 3a901988da87efcb884e573abde534fcf6b7a6b7 (diff) | |
download | spice-gtk-e36225ca448326724e2aef048a11f9cb5219b92b.tar.gz spice-gtk-e36225ca448326724e2aef048a11f9cb5219b92b.tar.xz spice-gtk-e36225ca448326724e2aef048a11f9cb5219b92b.zip |
gtk: WIP spice-channel documentation
Diffstat (limited to 'gtk/channel-base.c')
-rw-r--r-- | gtk/channel-base.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk/channel-base.c b/gtk/channel-base.c index e678d6e..ee95e05 100644 --- a/gtk/channel-base.c +++ b/gtk/channel-base.c @@ -20,6 +20,7 @@ #include "spice-channel-priv.h" +/* coroutine context */ void spice_channel_handle_set_ack(SpiceChannel *channel, spice_msg_in *in) { spice_channel *c = channel->priv; @@ -31,10 +32,11 @@ void spice_channel_handle_set_ack(SpiceChannel *channel, spice_msg_in *in) c->message_ack_window = c->message_ack_count = ack->window; c->marshallers->msgc_ack_sync(out->marshaller, &sync); - spice_msg_out_send(out); + spice_msg_out_send_internal(out); spice_msg_out_unref(out); } +/* coroutine context */ void spice_channel_handle_ping(SpiceChannel *channel, spice_msg_in *in) { spice_channel *c = channel->priv; @@ -42,10 +44,11 @@ void spice_channel_handle_ping(SpiceChannel *channel, spice_msg_in *in) spice_msg_out *pong = spice_msg_out_new(channel, SPICE_MSGC_PONG); c->marshallers->msgc_pong(pong->marshaller, ping); - spice_msg_out_send(pong); + spice_msg_out_send_internal(pong); spice_msg_out_unref(pong); } +/* coroutine context */ void spice_channel_handle_notify(SpiceChannel *channel, spice_msg_in *in) { spice_channel *c = channel->priv; @@ -75,6 +78,7 @@ void spice_channel_handle_notify(SpiceChannel *channel, spice_msg_in *in) message_str ? message_str : ""); } +/* coroutine context */ void spice_channel_handle_disconnect(SpiceChannel *channel, spice_msg_in *in) { SpiceMsgDisconnect *disconnect = spice_msg_in_parsed(in); @@ -83,6 +87,7 @@ void spice_channel_handle_disconnect(SpiceChannel *channel, spice_msg_in *in) disconnect->time_stamp, disconnect->reason); } +/* coroutine context */ void spice_channel_handle_wait_for_channels(SpiceChannel *channel, spice_msg_in *in) { /* spice_channel *c = channel->priv; @@ -91,6 +96,7 @@ void spice_channel_handle_wait_for_channels(SpiceChannel *channel, spice_msg_in SPICE_DEBUG("%s TODO", __FUNCTION__); } +/* coroutine context */ void spice_channel_handle_migrate(SpiceChannel *channel, spice_msg_in *in) { /* spice_channel *c = channel->priv; |