diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-02-27 09:38:04 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-02-27 16:55:22 +0100 |
commit | d47912241f4bc263cf3c19c07ed3907681826277 (patch) | |
tree | 5729d1503fc6f11a11998340fa25b1fcbc3eb995 /server/red_channel.c | |
parent | 29be54f6d3549c44b2b771ca3c21952d2d1b7026 (diff) | |
download | spice-d47912241f4bc263cf3c19c07ed3907681826277.tar.gz spice-d47912241f4bc263cf3c19c07ed3907681826277.tar.xz spice-d47912241f4bc263cf3c19c07ed3907681826277.zip |
server: s/RedsStreamContext/RedsStream
https://bugs.freedesktop.org/show_bug.cgi?id=34795
Diffstat (limited to 'server/red_channel.c')
-rw-r--r-- | server/red_channel.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/red_channel.c b/server/red_channel.c index 6008876a..788960fb 100644 --- a/server/red_channel.c +++ b/server/red_channel.c @@ -33,7 +33,7 @@ static PipeItem *red_channel_pipe_get(RedChannel *channel); static void red_channel_event(int fd, int event, void *data); /* return the number of bytes read. -1 in case of error */ -static int red_peer_receive(RedsStreamContext *peer, uint8_t *buf, uint32_t size) +static int red_peer_receive(RedsStream *peer, uint8_t *buf, uint32_t size) { uint8_t *pos = buf; while (size) { @@ -68,7 +68,7 @@ static int red_peer_receive(RedsStreamContext *peer, uint8_t *buf, uint32_t size // does many calls to red_peer_receive and through it cb_read, and thus avoids pointer // arithmetic for the case where a single cb_read could return multiple messages. But // this is suboptimal potentially. Profile and consider fixing. -static void red_peer_handle_incoming(RedsStreamContext *peer, IncomingHandler *handler) +static void red_peer_handle_incoming(RedsStream *peer, IncomingHandler *handler) { int bytes_read; uint8_t *parsed; @@ -152,7 +152,7 @@ void red_channel_receive(RedChannel *channel) red_peer_handle_incoming(channel->peer, &channel->incoming); } -static void red_peer_handle_outgoing(RedsStreamContext *peer, OutgoingHandler *handler) +static void red_peer_handle_outgoing(RedsStream *peer, OutgoingHandler *handler) { int n; if (handler->size == 0) { @@ -252,7 +252,7 @@ static void red_channel_peer_on_out_msg_done(void *opaque) } } -RedChannel *red_channel_create(int size, RedsStreamContext *peer, +RedChannel *red_channel_create(int size, RedsStream *peer, SpiceCoreInterface *core, int migrate, int handle_acks, channel_configure_socket_proc config_socket, @@ -334,7 +334,7 @@ int do_nothing_handle_message(RedChannel *red_channel, SpiceDataHeader *header, return TRUE; } -RedChannel *red_channel_create_parser(int size, RedsStreamContext *peer, +RedChannel *red_channel_create_parser(int size, RedsStream *peer, SpiceCoreInterface *core, int migrate, int handle_acks, channel_configure_socket_proc config_socket, |