summaryrefslogtreecommitdiffstats
path: root/server/red_channel.c
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-11-07 12:23:59 +0200
committerAlon Levy <alevy@redhat.com>2010-12-07 21:32:34 +0200
commit1540a64030cc82556e6a98230656b17c2ccf4dae (patch)
tree1eb5d6fe36583e3b70b69c84b8f6df7b3ca0f271 /server/red_channel.c
parent045be6b03ac114d53996df56a69f36fd7601edd3 (diff)
downloadspice-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.c5
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;