![]() |
Fun 0.41.5
The programming language that makes you have fun!
|
Implements the OP_PCSC_ESTABLISH opcode (conditional build). More...
Go to the source code of this file.
Functions | |
| if (!slot) | |
| if (rv !=SCARD_S_SUCCESS) | |
| push_value (vm, make_int(slot)) | |
Variables | |
| case | OP_PCSC_ESTABLISH |
| pcsc_ctx_entry * | e = pcsc_get_ctx(slot) |
| LONG | rv = SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL, &e->ctx) |
| break | |
Implements the OP_PCSC_ESTABLISH opcode (conditional build).
Creates a new PC/SC context using SCardEstablishContext(SCARD_SCOPE_SYSTEM) and registers it in the internal PCSC context registry when FUN_WITH_PCSC is enabled. Returns the allocated context id on success, or 0 on failure. When PCSC support is disabled at build time, this opcode returns 0.
OP_PCSC_ESTABLISH: () -> int
Definition in file establish.c.
| if | ( | ! | slot | ) |
Definition at line 28 of file establish.c.
| if | ( | rv ! | = SCARD_S_SUCCESS | ) |
Definition at line 38 of file establish.c.
| push_value | ( | vm | , |
| make_int(slot) | ) |
| break |
Definition at line 47 of file establish.c.
| pcsc_ctx_entry* e = pcsc_get_ctx(slot) |
Definition at line 32 of file establish.c.
| case OP_PCSC_ESTABLISH |
Definition at line 25 of file establish.c.
Definition at line 37 of file establish.c.