From 3f962fd861a0c49d9da7a1af55705206f5c57a34 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Thu, 5 May 2011 16:39:23 +0200 Subject: [PATCH] messages.h: add smartcard bits --- messages.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/messages.h b/messages.h index 929768b..58e8bee 100644 --- a/messages.h +++ b/messages.h @@ -31,6 +31,10 @@ #ifndef _H_MESSAGES #define _H_MESSAGES +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include @@ -522,6 +526,24 @@ typedef struct SpiceMsgcTunnelSocketTokens { uint32_t num_tokens; } SpiceMsgcTunnelSocketTokens; +#ifdef USE_SMARTCARD +typedef struct SpiceMsgSmartcard { + VSCMsgType type; + uint32_t length; + uint32_t reader_id; + uint8_t data[0]; +} SpiceMsgSmartcard; + +typedef struct SpiceMsgcSmartcard { + VSCMsgHeader header; + union { + VSCMsgError error; + VSCMsgATR atr_data; + VSCMsgReaderAdd add; + }; +} SpiceMsgcSmartcard; +#endif + SPICE_END_DECLS #endif /* _H_SPICE_PROTOCOL */