![]() |
Fun 0.41.5
The programming language that makes you have fun!
|
Implements the OP_PCSC_DISCONNECT opcode (conditional build). More...
Go to the source code of this file.
Functions | |
| free_value (vh) | |
| if (!ce) | |
| SCardDisconnect (ce->h, SCARD_LEAVE_CARD) | |
| push_value (vm, make_int(1)) | |
Variables | |
| case | OP_PCSC_DISCONNECT |
| int | hid = (int)vh.i |
| pcsc_card_entry * | ce = pcsc_get_card(hid) |
| ce | in_use = 0 |
| ce | h = 0 |
| ce | proto = 0 |
| break | |
Implements the OP_PCSC_DISCONNECT opcode (conditional build).
Disconnects a previously connected smart-card handle and frees the corresponding registry slot. When PCSC support is disabled at build time, this opcode returns 0 after consuming its argument.
OP_PCSC_DISCONNECT: (handle_id:int) -> int
Definition in file disconnect.c.
| free_value | ( | vh | ) |
| if | ( | ! | ce | ) |
Definition at line 36 of file disconnect.c.
| push_value | ( | vm | , |
| make_int(1) | ) |
| SCardDisconnect | ( | ce-> | h, |
| SCARD_LEAVE_CARD | ) |
| break |
Definition at line 50 of file disconnect.c.
| pcsc_card_entry* ce = pcsc_get_card(hid) |
Definition at line 35 of file disconnect.c.
| ce h = 0 |
Definition at line 42 of file disconnect.c.
| int hid = (int)vh.i |
Definition at line 33 of file disconnect.c.
| ce in_use = 0 |
Definition at line 41 of file disconnect.c.
| case OP_PCSC_DISCONNECT |
Definition at line 30 of file disconnect.c.
| ce proto = 0 |
Definition at line 43 of file disconnect.c.