[Spice-devel] [PATCH 09/11] Move dcc_create_stream to display channel

Frediano Ziglio fziglio at redhat.com
Mon Nov 16 03:06:55 PST 2015


From: Jonathon Jongsma <jjongsma at redhat.com>

---
 server/display-channel.h | 2 ++
 server/red_worker.c      | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/server/display-channel.h b/server/display-channel.h
index edbd4b9..ae8a900 100644
--- a/server/display-channel.h
+++ b/server/display-channel.h
@@ -252,6 +252,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 a5abe87..e63828b 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -1479,7 +1479,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)];
 
-- 
2.4.3



More information about the Spice-devel mailing list