20#if defined(__has_include)
21#if __has_include(<PCSC/winscard.h>)
22#include <PCSC/winscard.h>
23#include <PCSC/wintypes.h>
24#elif __has_include(<winscard.h>)
27#error "FUN_WITH_PCSC is enabled but PCSC headers were not found"
30#include <PCSC/winscard.h>
31#include <PCSC/wintypes.h>
89 if (
id <= 0)
return NULL;
103 if (
id <= 0)
return NULL;
static pcsc_card_entry g_pcsc_card[32]
static pcsc_card_entry * pcsc_get_card(int id)
Lookup a card slot by id.
static int pcsc_alloc_ctx_slot(void)
Allocate a free context slot in the PC/SC registry.
static pcsc_ctx_entry g_pcsc_ctx[8]
static int pcsc_alloc_card_slot(void)
Allocate a free card slot in the PC/SC registry.
static pcsc_ctx_entry * pcsc_get_ctx(int id)
Lookup a context slot by id.