summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-11-13 10:29:17 -0600
committerFabiano FidĂȘncio <fidencio@redhat.com>2015-11-13 18:33:58 +0100
commit018767a0f41f13f793dbe3651cf9ccaaf25086df (patch)
treeb30b1d5921a766eeab1fee1e295766ce70556bd8
parentb3bca8e0f21439f407d6f1079f750f94b3299355 (diff)
downloadspice-018767a0f41f13f793dbe3651cf9ccaaf25086df.zip
spice-018767a0f41f13f793dbe3651cf9ccaaf25086df.tar.gz
spice-018767a0f41f13f793dbe3651cf9ccaaf25086df.tar.xz
Move dcc_create_stream to display channel
-rw-r--r--server/display-channel.h2
-rw-r--r--server/red_worker.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/server/display-channel.h b/server/display-channel.h
index 40a3dc6..9c8c7b6 100644
--- a/server/display-channel.h
+++ b/server/display-channel.h
@@ -248,6 +248,8 @@ void dcc_push_destroy_surface (DisplayCha
uint32_t surface_id);
void dcc_add_stream_agent_clip (DisplayChannelClient* dcc,
StreamAgent *agent);
+void dcc_create_stream (DisplayChannelClient *dcc,
+ Stream *stream);
typedef struct DrawablePipeItem {
RingItem base; /* link for a list of pipe items held by Drawable */
diff --git a/server/red_worker.c b/server/red_worker.c
index 3542728..9a00ee6 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -1633,7 +1633,7 @@ static void red_stream_update_client_playback_latency(void *opaque, uint32_t del
main_dispatcher_set_mm_time_latency(RED_CHANNEL_CLIENT(agent->dcc)->client, agent->dcc->streams_max_latency);
}
-static void dcc_create_stream(DisplayChannelClient *dcc, Stream *stream)
+void dcc_create_stream(DisplayChannelClient *dcc, Stream *stream)
{
StreamAgent *agent = &dcc->stream_agents[get_stream_id(DCC_TO_DC(dcc), stream)];