diff --git a/common/messages.h b/common/messages.h index 929768b..58e8bee 100644 --- a/common/messages.h +++ b/common/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 */