Re: [spice-server v2 2/9] qxl: Remove 'blackness' and 'invers' put/get methods

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

 



> 
> SpiceWhiteness/SpiceBlackness/SpiceInvers are 3 typedef for the same
> type, no need to have 3 identical red_put_xxx/red_get_xxx methods.
> 
> Signed-off-by: Christophe Fergeau <cfergeau@xxxxxxxxxx>
> ---
>  server/red-parse-qxl.c | 25 ++++---------------------
>  1 file changed, 4 insertions(+), 21 deletions(-)
> 
> diff --git a/server/red-parse-qxl.c b/server/red-parse-qxl.c
> index b766e9935..4a45c0f76 100644
> --- a/server/red-parse-qxl.c
> +++ b/server/red-parse-qxl.c
> @@ -986,27 +986,10 @@ static void red_put_whiteness(SpiceWhiteness *red)
>      red_put_qmask(&red->mask);
>  }
>  
> -static void red_get_blackness_ptr(RedMemSlotInfo *slots, int group_id,
> -                                  SpiceBlackness *red, QXLBlackness *qxl,
> uint32_t flags)
> -{
> -    red_get_qmask_ptr(slots, group_id, &red->mask, &qxl->mask, flags);
> -}
> -
> -static void red_put_blackness(SpiceWhiteness *red)
> -{
> -    red_put_qmask(&red->mask);
> -}
> -
> -static void red_get_invers_ptr(RedMemSlotInfo *slots, int group_id,
> -                               SpiceInvers *red, QXLInvers *qxl, uint32_t
> flags)
> -{
> -    red_get_qmask_ptr(slots, group_id, &red->mask, &qxl->mask, flags);
> -}
> -
> -static void red_put_invers(SpiceWhiteness *red)
> -{
> -    red_put_qmask(&red->mask);
> -}
> +#define red_get_invers_ptr red_get_whiteness_ptr
> +#define red_get_blackness_ptr red_get_whiteness_ptr
> +#define red_put_invers red_put_whiteness
> +#define red_put_blackness red_put_whiteness
>  
>  static void red_get_clip_ptr(RedMemSlotInfo *slots, int group_id,
>                               SpiceClip *red, QXLClip *qxl)

Acked-by: Frediano Ziglio <fziglio@xxxxxxxxxx>

Frediano
_______________________________________________
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]