mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-11 08:07:16 +00:00
server/red_channel: add red_channel_is_connected
This commit is contained in:
parent
045be6b03a
commit
1540a64030
@ -571,6 +571,11 @@ static PipeItem *red_channel_pipe_get(RedChannel *channel)
|
||||
return item;
|
||||
}
|
||||
|
||||
int red_channel_is_connected(RedChannel *channel)
|
||||
{
|
||||
return !!channel->peer;
|
||||
}
|
||||
|
||||
static void red_channel_pipe_clear(RedChannel *channel)
|
||||
{
|
||||
PipeItem *item;
|
||||
|
||||
@ -182,6 +182,8 @@ RedChannel *red_channel_create_parser(int size, RedsStreamContext *peer,
|
||||
channel_on_incoming_error_proc incoming_error,
|
||||
channel_on_outgoing_error_proc outgoing_error);
|
||||
|
||||
int red_channel_is_connected(RedChannel *channel);
|
||||
|
||||
void red_channel_destroy(RedChannel *channel);
|
||||
|
||||
void red_channel_shutdown(RedChannel *channel);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user