messages.h: add smartcard bits

This commit is contained in:
Christophe Fergeau 2011-05-05 16:39:23 +02:00 committed by Marc-André Lureau
parent 508547c100
commit 4feaffad8e

View File

@ -31,6 +31,10 @@
#ifndef _H_MESSAGES
#define _H_MESSAGES
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <spice/protocol.h>
#include <spice/macros.h>
@ -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 */