Re: [PATCH 10/11] Use CURSOR_CHANNEL_CLIENT() macro instead of RCC_TO_CCC()

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

 



> 
> 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)

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://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]