48void * DYN_LoadLibrary(
char *pcLibrary)
54 shl_load(pcLibrary, BIND_IMMEDIATE | BIND_VERBOSE | BIND_NOSTART,
59 Log3(PCSC_LOG_ERROR,
"%s: %s", pcLibrary, strerror(errno));
62 pvLHandle = (
void *) myHandle;
66LONG DYN_CloseLibrary(
void *pvLHandle)
71 rv = shl_unload((shl_t) pvLHandle);
75 Log2(PCSC_LOG_ERROR,
"%s", strerror(errno));
82LONG DYN_GetAddress(
void *pvLHandle,
void **pvFHandle,
const char *pcFunction,
88 rv = shl_findsym((shl_t *) & pvLHandle, pcFunction, TYPE_PROCEDURE,
93 Log3(mayfail ? PCSC_LOG_INFO : PCSC_LOG_ERROR,
"%s: %s",
94 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.