summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-11-07 13:01:48 +0200
committerAlon Levy <alevy@redhat.com>2010-11-07 13:01:48 +0200
commit9b676108463c9b72dffc8d8eefbf358492a7bf27 (patch)
tree45472a0af8635fdaa8055863cc9f35a02bec0a14
parent5f4464204c8e6bd13c08d200126fa4763d3aaa45 (diff)
downloadspice-9b676108463c9b72dffc8d8eefbf358492a7bf27.tar.gz
spice-9b676108463c9b72dffc8d8eefbf358492a7bf27.tar.xz
spice-9b676108463c9b72dffc8d8eefbf358492a7bf27.zip
server/red_channel: unstatic red_channel_push (for later red_worker usage)
-rw-r--r--server/red_channel.c3
-rw-r--r--server/red_channel.h6
2 files changed, 7 insertions, 2 deletions
diff --git a/server/red_channel.c b/server/red_channel.c
index 02012bc7..3b9bb293 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -29,7 +29,6 @@
#include "stat.h"
#include "red_channel.h"
-static void red_channel_push(RedChannel *channel);
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);
@@ -461,7 +460,7 @@ void red_channel_begin_send_message(RedChannel *channel)
red_channel_send(channel);
}
-static void red_channel_push(RedChannel *channel)
+void red_channel_push(RedChannel *channel)
{
PipeItem *pipe_item;
diff --git a/server/red_channel.h b/server/red_channel.h
index db410fe0..9078237b 100644
--- a/server/red_channel.h
+++ b/server/red_channel.h
@@ -228,4 +228,10 @@ void red_channel_pipe_add_tail(RedChannel *channel, PipeItem *item);
/* for types that use this routine -> the pipe item should be freed */
void red_channel_pipe_add_type(RedChannel *channel, int pipe_item_type);
+// TODO: unstaticed for display/cursor channels. they do some specific pushes not through
+// adding elements or on events. but not sure if this is actually required (only result
+// 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);
+
#endif