mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-08 22:10:46 +00:00
server/red_channel: add red_channel_pipe_add_after (from red_worker)
This commit is contained in:
parent
23f37df548
commit
c322873cf0
@ -520,6 +520,16 @@ void red_channel_pipe_add_push(RedChannel *channel, PipeItem *item)
|
||||
red_channel_push(channel);
|
||||
}
|
||||
|
||||
void red_channel_pipe_add_after(RedChannel *channel, PipeItem *item, PipeItem *pos)
|
||||
{
|
||||
ASSERT(channel);
|
||||
ASSERT(pos);
|
||||
ASSERT(item);
|
||||
|
||||
channel->pipe_size++;
|
||||
ring_add_after(&item->link, &pos->link);
|
||||
}
|
||||
|
||||
int red_channel_pipe_item_is_linked(RedChannel *channel, PipeItem *item)
|
||||
{
|
||||
return ring_item_is_linked(&item->link);
|
||||
|
||||
@ -216,6 +216,7 @@ void red_channel_begin_send_message(RedChannel *channel);
|
||||
void red_channel_pipe_item_init(RedChannel *channel, PipeItem *item, int type);
|
||||
void red_channel_pipe_add_push(RedChannel *channel, PipeItem *item);
|
||||
void red_channel_pipe_add(RedChannel *channel, PipeItem *item);
|
||||
void red_channel_pipe_add_after(RedChannel *channel, PipeItem *item, PipeItem *pos);
|
||||
int red_channel_pipe_item_is_linked(RedChannel *channel, PipeItem *item);
|
||||
void red_channel_pipe_item_remove(RedChannel *channel, PipeItem *item);
|
||||
void red_channel_pipe_add_tail(RedChannel *channel, PipeItem *item);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user