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
40
typedef
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 */
50
CRITICAL_SECTION
lock;
51
}
SMARTCARD_DEVICE
;
52
53
typedef
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;
62
}
SMARTCARD_CONTEXT
;
63
64
#endif
/* FREERDP_CHANNEL_SMARTCARD_CLIENT_MAIN_H */
RTL_CRITICAL_SECTION
Definition
include/winpr/synch.h:160
SMARTCARD_CONTEXT
Definition
smartcard_main.h:54
SMARTCARD_DEVICE
Definition
smartcard_main.h:41
channels
smartcard
client
smartcard_main.h
Generated by
1.9.8