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

Pavel Grunt pgrunt at redhat.com
Mon Nov 16 04:20:45 PST 2015


Hi,

it is not moved, it is just making it public. Can it be moved from red_worker.c?

Pavel

On Mon, 2015-11-16 at 11:06 +0000, Frediano Ziglio wrote:
> 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                  (DisplayC
> ha
>                                                                        uint32_
> t surface_id);
>  void                       dcc_add_stream_agent_clip                 (Display
> ChannelClient* dcc,
>                                                                        StreamA
> gent *agent);
> +void                       dcc_create_stream                         (Display
> ChannelClient *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)];
>  


More information about the Spice-devel mailing list