FreeRDP
Loading...
Searching...
No Matches
smartcard_main.h
1
23#ifndef FREERDP_CHANNEL_SMARTCARD_CLIENT_MAIN_H
24#define FREERDP_CHANNEL_SMARTCARD_CLIENT_MAIN_H
25
26#include <freerdp/channels/log.h>
27#include <freerdp/channels/rdpdr.h>
28
29#include <winpr/crt.h>
30#include <winpr/wlog.h>
31#include <winpr/synch.h>
32#include <winpr/smartcard.h>
33#include <winpr/collections.h>
34
35#include <freerdp/utils/smartcard_operations.h>
36#include <freerdp/utils/smartcard_call.h>
37
38#define TAG CHANNELS_TAG("smartcard.client")
39
40typedef struct
41{
42 DEVICE device;
43
44 HANDLE thread;
45 scard_call_context* callctx;
46 wMessageQueue* IrpQueue;
47 wListDictionary* rgOutstandingMessages;
48 rdpContext* rdpcontext;
49 /* serializes the contexts of callctx between thread and DEVICE::Init/DEVICE::Free */
52
53typedef struct
54{
55 HANDLE thread;
56 SCARDCONTEXT hContext;
57 wMessageQueue* IrpQueue;
58 /* calls that may block, must not hold up IrpQueue */
59 HANDLE txThread;
60 wMessageQueue* TxQueue;
61 SMARTCARD_DEVICE* smartcard;
63
64#endif /* FREERDP_CHANNEL_SMARTCARD_CLIENT_MAIN_H */