Re: [spice-server] Avoid to typedef twice SmartCardChannelClient

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

 



> 
> SmartCardChannelClient is already defined in smartcard.h which
> is included in the smartcard-channel-client.h header.
> 
> Signed-off-by: Francois Gouget <fgouget@xxxxxxxxxxxxxxx>
> ---
> 
> This patch series is nice and really does help.
> I would add this patch to it.
> 

Is there something missing?

>  server/smartcard-channel-client.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/server/smartcard-channel-client.h
> b/server/smartcard-channel-client.h
> index 4fe1c72..606a95e 100644
> --- a/server/smartcard-channel-client.h
> +++ b/server/smartcard-channel-client.h
> @@ -37,7 +37,6 @@ G_BEGIN_DECLS
>  #define SMARTCARD_CHANNEL_CLIENT_GET_CLASS(obj) \
>      (G_TYPE_INSTANCE_GET_CLASS((obj), TYPE_SMARTCARD_CHANNEL_CLIENT,
>      SmartCardChannelClientClass))
>  
> -typedef struct SmartCardChannelClient SmartCardChannelClient;
>  typedef struct SmartCardChannelClientClass SmartCardChannelClientClass;
>  typedef struct SmartCardChannelClientPrivate SmartCardChannelClientPrivate;
>  

Yes, this class it's kind of my 10/10, by our "rules" SmartCardChannelClient
should be defined here but it clash with other headers.

I would ack it and consider a temporary workaround till we decide
a final rule or way to handle these. At least this change is quite minimal.

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]