summaryrefslogtreecommitdiffstats
path: root/server/red_channel.c
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-11-09 16:00:49 +0200
committerAlon Levy <alevy@redhat.com>2011-03-02 17:27:51 +0200
commit8002a30f9ce4b8cbd00f5ff8ded6f72a297a2240 (patch)
treed5c068bfd7644b05404161f9089c533b4ffafa1e /server/red_channel.c
parent9e46945a6189cff9a41b79b2bca70f0aacc60305 (diff)
downloadspice-8002a30f9ce4b8cbd00f5ff8ded6f72a297a2240.tar.gz
spice-8002a30f9ce4b8cbd00f5ff8ded6f72a297a2240.tar.xz
spice-8002a30f9ce4b8cbd00f5ff8ded6f72a297a2240.zip
server/red_channel (all): add red_channel_get_marshaller
For ussage in the send_item callback. It's only valid during this time anyway (should make it return NULL in other occasions?) No more direct usage of RedChannel.send_data.marshaller by channels.
Diffstat (limited to 'server/red_channel.c')
-rw-r--r--server/red_channel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/red_channel.c b/server/red_channel.c
index 5201da77..9028943f 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -672,3 +672,7 @@ void red_channel_ack_set_client_window(RedChannel *channel, int client_window)
channel->ack_data.client_window = client_window;
}
+SpiceMarshaller *red_channel_get_marshaller(RedChannel *channel)
+{
+ return channel->send_data.marshaller;
+}