Re: [PATCH 08/15] Change reds_set_client_mm_time_latency() to take RedsState arg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2016-01-20 at 13:25 +0000, Frediano Ziglio wrote:
> From: Jonathon Jongsma <jjongsma@xxxxxxxxxx>
> 
Acked-by: Pavel Grunt <pgrunt@xxxxxxxxxx>
> ---
>  server/main-dispatcher.c | 4 ++--
>  server/reds.c            | 2 +-
>  server/reds.h            | 2 +-
>  3 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/server/main-dispatcher.c b/server/main-dispatcher.c
> index 01290d2..132a693 100644
> --- a/server/main-dispatcher.c
> +++ b/server/main-dispatcher.c
> @@ -126,7 +126,7 @@ static void
> main_dispatcher_handle_mm_time_latency(void *opaque,
>                                                     void *payload)
>  {
>      MainDispatcherMmTimeLatencyMessage *msg = payload;
> -    reds_set_client_mm_time_latency(msg->client, msg->latency);
> +    reds_set_client_mm_time_latency(reds, msg->client, msg-
> >latency);
>      red_client_unref(msg->client);
>  }
>  
> @@ -159,7 +159,7 @@ void
> main_dispatcher_set_mm_time_latency(RedClient *client, uint32_t
> latency)
>      MainDispatcherMmTimeLatencyMessage msg;
>  
>      if (pthread_self() == main_dispatcher.base.self) {
> -        reds_set_client_mm_time_latency(client, latency);
> +        reds_set_client_mm_time_latency(reds, client, latency);
>          return;
>      }
>  
> diff --git a/server/reds.c b/server/reds.c
> index a2e1542..58e45ae 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -2553,7 +2553,7 @@ static void reds_send_mm_time(RedsState *reds)
>                                         reds_get_mm_time() - reds-
> >mm_time_latency);
>  }
>  
> -void reds_set_client_mm_time_latency(RedClient *client, uint32_t
> latency)
> +void reds_set_client_mm_time_latency(RedsState *reds, RedClient
> *client, uint32_t latency)
>  {
>      // TODO: multi-client support for mm_time
>      if (reds->mm_time_enabled) {
> diff --git a/server/reds.h b/server/reds.h
> index 3f12217..8bf3210 100644
> --- a/server/reds.h
> +++ b/server/reds.h
> @@ -113,6 +113,6 @@ void
> reds_on_client_seamless_migrate_complete(RedsState *reds, RedClient
> *client
>  void reds_on_main_channel_migrate(RedsState *reds, MainChannelClient
> *mcc);
>  void reds_on_char_device_state_destroy(SpiceCharDeviceState *dev);
>  
> -void reds_set_client_mm_time_latency(RedClient *client, uint32_t
> latency);
> +void reds_set_client_mm_time_latency(RedsState *reds, RedClient
> *client, uint32_t latency);
>  
>  #endif
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]