summaryrefslogtreecommitdiffstats
path: root/server/inputs_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/inputs_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/inputs_channel.c')
-rw-r--r--server/inputs_channel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/inputs_channel.c b/server/inputs_channel.c
index c8022b27..9ebf0509 100644
--- a/server/inputs_channel.c
+++ b/server/inputs_channel.c
@@ -254,8 +254,7 @@ static void inputs_channel_release_pipe_item(RedChannel *channel,
static void inputs_channel_send_item(RedChannel *channel, PipeItem *base)
{
- InputsChannel *inputs_channel = (InputsChannel *)channel;
- SpiceMarshaller *m = inputs_channel->base.send_data.marshaller;
+ SpiceMarshaller *m = red_channel_get_marshaller(channel);
red_channel_init_send_data(channel, base->type, base);
switch (base->type) {