From 8002a30f9ce4b8cbd00f5ff8ded6f72a297a2240 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 9 Nov 2010 16:00:49 +0200 Subject: 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. --- server/inputs_channel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'server/inputs_channel.c') 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) { -- cgit