48LONG DYN_LoadLibrary(
void **pvLHandle,
char *pcLibrary)
55 shl_load(pcLibrary, BIND_IMMEDIATE | BIND_VERBOSE | BIND_NOSTART,
60 Log3(PCSC_LOG_ERROR,
"%s: %s", pcLibrary, strerror(errno));
64 *pvLHandle = (
void *) myHandle;
68LONG DYN_CloseLibrary(
void **pvLHandle)
73 rv = shl_unload((shl_t) * pvLHandle);
78 Log2(PCSC_LOG_ERROR,
"%s", strerror(errno));
85LONG DYN_GetAddress(
void *pvLHandle,
void **pvFHandle,
const char *pcFunction,
91 rv = shl_findsym((shl_t *) & pvLHandle, pcFunction, TYPE_PROCEDURE,
96 Log3(mayfail ? PCSC_LOG_INFO : PCSC_LOG_ERROR,
"%s: %s",
97 pcFunction, strerror(errno));
This abstracts dynamic library loading functions.
#define SCARD_F_UNKNOWN_ERROR
An internal error has been detected, but the source is unknown.
#define SCARD_S_SUCCESS
No error was encountered.
This keeps a list of defines for pcsc-lite.