mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-01-05 13:50:26 +00:00
messages.h: add smartcard bits
This commit is contained in:
parent
508547c100
commit
4feaffad8e
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user