![]() |
Fun 0.41.5
The programming language that makes you have fun!
|
PC/SC smartcard helper registries and lookup utilities. More...
#include <PCSC/winscard.h>#include <PCSC/wintypes.h>#include <string.h>Go to the source code of this file.
Data Structures | |
| struct | pcsc_ctx_entry |
| struct | pcsc_card_entry |
Functions | |
| static int | pcsc_alloc_ctx_slot (void) |
| Allocate a free context slot in the PC/SC registry. | |
| 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. | |
| static pcsc_card_entry * | pcsc_get_card (int id) |
| Lookup a card slot by id. | |
Variables | |
| static pcsc_ctx_entry | g_pcsc_ctx [8] |
| static pcsc_card_entry | g_pcsc_card [32] |
PC/SC smartcard helper registries and lookup utilities.
Provides small fixed-size registries for PC/SC contexts and card handles, plus allocation and lookup helpers used by VM opcodes when FUN_WITH_PCSC is enabled.
Definition in file pcsc.c.
|
static |
|
static |
|
static |
Lookup a card slot by id.
| id | 1-based card id previously returned by pcsc_alloc_card_slot(). |
|
static |
Lookup a context slot by id.
| id | 1-based context id previously returned by pcsc_alloc_ctx_slot(). |
|
static |
|
static |