[Spice-devel] [PATCH 10/11] Use CURSOR_CHANNEL_CLIENT() macro instead of RCC_TO_CCC()

Frediano Ziglio fziglio at redhat.com
Fri Aug 12 07:40:15 UTC 2016


> 
> Prepare for port to GObject

I would merge this in 2/11

Frediano

> ---
>  server/cursor-channel-client.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/server/cursor-channel-client.c b/server/cursor-channel-client.c
> index cdb1e51..7f7383d 100644
> --- a/server/cursor-channel-client.c
> +++ b/server/cursor-channel-client.c
> @@ -56,8 +56,6 @@ struct CursorChannelClientPrivate
>  };
>  
>  
> -#define RCC_TO_CCC(rcc) ((CursorChannelClient*)rcc)
> -
>  #define CLIENT_CURSOR_CACHE
>  #include "cache-item.tmpl.c"
>  #undef CLIENT_CURSOR_CACHE
> @@ -68,7 +66,7 @@ static int _cursor_count = 0;
>  
>  void cursor_channel_client_reset_cursor_cache(RedChannelClient *rcc)
>  {
> -    red_cursor_cache_reset(RCC_TO_CCC(rcc), CLIENT_CURSOR_CACHE_SIZE);
> +    red_cursor_cache_reset(CURSOR_CHANNEL_CLIENT(rcc),
> CLIENT_CURSOR_CACHE_SIZE);
>  }
>  
>  void cursor_channel_client_on_disconnect(RedChannelClient *rcc)



More information about the Spice-devel mailing list