summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-05-05 16:39:23 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:30:23 +0100
commit4feaffad8ef7544bc6bddd94a3b0eca129302339 (patch)
tree44d6bdc11ed6d27c9385daafa7cfd04c3334bee5
parent508547c100cee6f21fe7f06356d525f76a18740a (diff)
messages.h: add smartcard bits
-rw-r--r--common/messages.h22
1 files changed, 22 insertions, 0 deletions
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 <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 */