diff options
author | Alon Levy <alevy@redhat.com> | 2010-11-07 12:23:59 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2010-12-07 21:32:34 +0200 |
commit | 1540a64030cc82556e6a98230656b17c2ccf4dae (patch) | |
tree | 1eb5d6fe36583e3b70b69c84b8f6df7b3ca0f271 /server/red_channel.c | |
parent | 045be6b03ac114d53996df56a69f36fd7601edd3 (diff) | |
download | spice-1540a64030cc82556e6a98230656b17c2ccf4dae.tar.gz spice-1540a64030cc82556e6a98230656b17c2ccf4dae.tar.xz spice-1540a64030cc82556e6a98230656b17c2ccf4dae.zip |
server/red_channel: add red_channel_is_connected
Diffstat (limited to 'server/red_channel.c')
-rw-r--r-- | server/red_channel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/red_channel.c b/server/red_channel.c index be861fdd..cab56a0d 100644 --- a/server/red_channel.c +++ b/server/red_channel.c @@ -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; |