diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2015-02-24 20:15:36 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2016-03-10 11:36:52 +0000 |
commit | a65304401123c98987c3f5df7f9778bb2c991b1f (patch) | |
tree | f157ff182bba2d9ead208fda24403453dbcad11b /server/red-channel.c | |
parent | 3484b739a9585861b801981343c560b065960056 (diff) |
Rename red_channel_pipe_item_init to pipe_item_init
The RedChannel argument is not used by pipe_item_init. Removing it
will make code simpler in places where we don't have a RedChannel
directly available.
This is acting on a PipeItem object so correct name is pipe_item_init.
Acked-by: Pavel Grunt <pgrunt@redhat.com>
Diffstat (limited to 'server/red-channel.c')
-rw-r--r-- | server/red-channel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/red-channel.c b/server/red-channel.c index 3ee61922..3909c63b 100644 --- a/server/red-channel.c +++ b/server/red-channel.c @@ -1663,7 +1663,7 @@ void red_channel_client_set_message_serial(RedChannelClient *rcc, uint64_t seria rcc->send_data.serial = serial; } -void red_channel_pipe_item_init(RedChannel *channel, PipeItem *item, int type) +void pipe_item_init(PipeItem *item, int type) { ring_item_init(&item->link); item->type = type; @@ -1729,7 +1729,7 @@ void red_channel_client_pipe_add_type(RedChannelClient *rcc, int pipe_item_type) { PipeItem *item = spice_new(PipeItem, 1); - red_channel_pipe_item_init(rcc->channel, item, pipe_item_type); + pipe_item_init(item, pipe_item_type); red_channel_client_pipe_add(rcc, item); red_channel_client_push(rcc); } @@ -1749,7 +1749,7 @@ void red_channel_client_pipe_add_empty_msg(RedChannelClient *rcc, int msg_type) { EmptyMsgPipeItem *item = spice_new(EmptyMsgPipeItem, 1); - red_channel_pipe_item_init(rcc->channel, &item->base, PIPE_ITEM_TYPE_EMPTY_MSG); + pipe_item_init(&item->base, PIPE_ITEM_TYPE_EMPTY_MSG); item->msg = msg_type; red_channel_client_pipe_add(rcc, &item->base); red_channel_client_push(rcc); |