mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-07 18:34:19 +00:00
server/red_channel: unstatic red_channel_pipe_clear (for red_worker)
This commit is contained in:
parent
a30a602654
commit
c0b7abaa48
@ -30,7 +30,6 @@
|
||||
#include "red_channel.h"
|
||||
|
||||
static PipeItem *red_channel_pipe_get(RedChannel *channel);
|
||||
static void red_channel_pipe_clear(RedChannel *channel);
|
||||
static void red_channel_event(int fd, int event, void *data);
|
||||
|
||||
/* return the number of bytes read. -1 in case of error */
|
||||
@ -578,7 +577,7 @@ int red_channel_is_connected(RedChannel *channel)
|
||||
return !!channel->peer;
|
||||
}
|
||||
|
||||
static void red_channel_pipe_clear(RedChannel *channel)
|
||||
void red_channel_pipe_clear(RedChannel *channel)
|
||||
{
|
||||
PipeItem *item;
|
||||
if (channel->send_data.item) {
|
||||
|
||||
@ -230,5 +230,9 @@ void red_channel_pipe_add_type(RedChannel *channel, int pipe_item_type);
|
||||
// should be that they ""try"" a little harder, but if the event system is correct it
|
||||
// should not make any difference.
|
||||
void red_channel_push(RedChannel *channel);
|
||||
// TODO: again - what is the context exactly? this happens in channel disconnect. but our
|
||||
// current red_channel_shutdown also closes the socket - is there a socket to close?
|
||||
// are we reading from an fd here? arghh
|
||||
void red_channel_pipe_clear(RedChannel *channel);
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user