Re: [PATCH] macros: do not use more type safe CONTAINEROF version if not requested

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

 



On Tue, Mar 01, 2016 at 09:44:39AM +0000, Frediano Ziglio wrote:
> This prevents incompatibility if users (like old spice-server/spice-gtk)
> are not expected to have this additional restriction.
> 
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  spice/macros.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> I defined a new SPICE_CONTAINEROF_MORESAFE macro to enable this extra check
> on the type of member. Not really happy with the name.

SPICE_TYPESAFE_CONTAINEROF ?
This could go with a comment above saying that this define is used to
avoid compilation breakage with older spice-server releases which
triggered some errors without an additional patch.

> Could be something related to the version of spice-protocol expected works
> out?


I'm not sure what you are suggesting here.

Christophe

Attachment: signature.asc
Description: PGP signature

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