summaryrefslogtreecommitdiffstats
path: root/server/red_channel.c
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-11-10 09:52:28 +0200
committerAlon Levy <alevy@redhat.com>2011-03-02 17:27:52 +0200
commit8cd5568c92384490ec20f898d2d8c12009b6bf47 (patch)
treea9ef6fca1c4d6660b69b8b48e38b6d952fe0e63e /server/red_channel.c
parent16bff20f91c928349dff7329ac63bddcab2444b2 (diff)
downloadspice-8cd5568c92384490ec20f898d2d8c12009b6bf47.tar.gz
spice-8cd5568c92384490ec20f898d2d8c12009b6bf47.tar.xz
spice-8cd5568c92384490ec20f898d2d8c12009b6bf47.zip
server/red_channel (+): remove red_channel_add_buf
Diffstat (limited to 'server/red_channel.c')
-rw-r--r--server/red_channel.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/server/red_channel.c b/server/red_channel.c
index f8944c01..1b705d67 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -455,6 +455,7 @@ void red_channel_shutdown(RedChannel *channel)
red_channel_pipe_clear(channel);
shutdown(channel->stream->socket, SHUT_RDWR);
channel->stream->shutdown = TRUE;
+ channel->incoming.shut = TRUE;
}
}
@@ -531,12 +532,6 @@ static void red_channel_event(int fd, int event, void *data)
}
}
-void red_channel_add_buf(RedChannel *channel, void *data, uint32_t size)
-{
- spice_marshaller_add_ref(channel->send_data.marshaller, data, size);
- channel->send_data.header->size += size;
-}
-
void red_channel_init_send_data(RedChannel *channel, uint16_t msg_type, PipeItem *item)
{
ASSERT(channel->send_data.item == NULL);