[Spice-devel] [PATCH 7/9] Move dcc_create_stream to display channel
Jonathon Jongsma
jjongsma at redhat.com
Fri Nov 13 08:29:17 PST 2015
---
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 ebe03ab..9456fcc 100644
--- a/server/display-channel.h
+++ b/server/display-channel.h
@@ -244,6 +244,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 a4f1f83..b29ec35 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