[Spice-devel] [PATCH 12/15] Change reds_client_monitors_config_cleanup() to take RedsState arg

Pavel Grunt pgrunt at redhat.com
Tue Jan 19 01:01:09 PST 2016


Acked-by: Pavel Grunt <pgrunt at redhat.com>

On Mon, 2016-01-18 at 16:38 +0000, Frediano Ziglio wrote:
> From: Jonathon Jongsma <jjongsma at redhat.com>
> 
> ---
>  server/reds.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/server/reds.c b/server/reds.c
> index b183ee1..5c038ca 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -1040,7 +1040,7 @@ void reds_release_agent_data_buffer(RedsState
> *reds, uint8_t *buf)
>      dev_state->recv_from_client_buf_pushed = FALSE;
>  }
>  
> -static void reds_client_monitors_config_cleanup(void)
> +static void reds_client_monitors_config_cleanup(RedsState *reds)
>  {
>      RedsClientMonitorsConfig *cmc = &reds->client_monitors_config;
>  
> @@ -1072,7 +1072,7 @@ static void reds_on_main_agent_monitors_config(
>      monitors_config = (VDAgentMonitorsConfig *)(cmc->buffer +
> sizeof(*msg_header));
>      spice_debug("%s: %d", __func__, monitors_config-
> >num_of_monitors);
>      red_dispatcher_client_monitors_config(monitors_config);
> -    reds_client_monitors_config_cleanup();
> +    reds_client_monitors_config_cleanup(reds);
>  }
>  
>  void reds_on_main_agent_data(MainChannelClient *mcc, void *message,
> size_t size)
> @@ -3418,7 +3418,7 @@ static int do_spice_init(SpiceCoreInterface
> *core_interface)
>  
>      reds->mouse_mode = SPICE_MOUSE_MODE_SERVER;
>  
> -    reds_client_monitors_config_cleanup();
> +    reds_client_monitors_config_cleanup(reds);
>  
>      reds->allow_multiple_clients = getenv(SPICE_DEBUG_ALLOW_MC_ENV)
> != NULL;
>      if (reds->allow_multiple_clients) {


More information about the Spice-devel mailing list