|
pcsc-lite 1.9.4
|
This keeps track of a list of currently available reader structures. More...
#include "config.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <sys/types.h>#include <sys/stat.h>#include <errno.h>#include <fcntl.h>#include <pthread.h>#include "misc.h"#include "pcscd.h"#include "debuglog.h"#include "readerfactory.h"#include "dyn_generic.h"#include "sys_generic.h"#include "eventhandler.h"#include "ifdwrapper.h"#include "hotplug.h"#include "configfile.h"#include "utils.h"Go to the source code of this file.
Macros | |
| #define | TRUE 1 |
| #define | FALSE 0 |
| #define | IDENTITY_SHIFT 16 |
| #define | GET_ADDRESS_OPTIONALv2(s, code) |
| #define | GET_ADDRESSv2(s) |
| #define | GET_ADDRESS_OPTIONALv3(s, code) |
| #define | GET_ADDRESSv3(s) |
Variables | |
| static READER_CONTEXT * | sReadersContexts [PCSCLITE_MAX_READERS_CONTEXTS] |
| READER_STATE | readerStates [PCSCLITE_MAX_READERS_CONTEXTS] |
| static int | maxReaderHandles = PCSC_MAX_READER_HANDLES |
| static DWORD | dwNumReadersContexts = 0 |
| static pthread_mutex_t | LockMutex = PTHREAD_MUTEX_INITIALIZER |
This keeps track of a list of currently available reader structures.
Definition in file readerfactory.c.
| #define FALSE 0 |
Definition at line 70 of file readerfactory.c.
| #define GET_ADDRESS_OPTIONALv2 | ( | s, | |
| code | |||
| ) |
| #define GET_ADDRESS_OPTIONALv3 | ( | s, | |
| code | |||
| ) |
| #define GET_ADDRESSv2 | ( | s | ) |
| #define GET_ADDRESSv3 | ( | s | ) |
| #define IDENTITY_SHIFT 16 |
Definition at line 83 of file readerfactory.c.
| #define TRUE 1 |
Definition at line 69 of file readerfactory.c.
| LONG _RefReader | ( | READER_CONTEXT * | sReader | ) |
Definition at line 105 of file readerfactory.c.
| LONG _UnrefReader | ( | READER_CONTEXT * | sReader | ) |
Definition at line 117 of file readerfactory.c.
|
static |
Definition at line 86 of file readerfactory.c.
|
static |
Definition at line 622 of file readerfactory.c.
| LONG RFAddReader | ( | const char * | readerNameLong, |
| int | port, | ||
| const char * | library, | ||
| const char * | device | ||
| ) |
Definition at line 161 of file readerfactory.c.
| LONG RFAddReaderHandle | ( | READER_CONTEXT * | rContext, |
| SCARDHANDLE | hCard | ||
| ) |
Definition at line 1189 of file readerfactory.c.
| LONG RFAllocateReaderSpace | ( | unsigned int | customMaxReaderHandles | ) |
Definition at line 132 of file readerfactory.c.
| LONG RFBindFunctions | ( | READER_CONTEXT * | rContext | ) |
Definition at line 876 of file readerfactory.c.
| LONG RFCheckReaderEventState | ( | READER_CONTEXT * | rContext, |
| SCARDHANDLE | hCard | ||
| ) |
Definition at line 1294 of file readerfactory.c.
| LONG RFCheckReaderStatus | ( | READER_CONTEXT * | rContext | ) |
Definition at line 1349 of file readerfactory.c.
| LONG RFCheckSharing | ( | SCARDHANDLE | hCard, |
| READER_CONTEXT * | rContext | ||
| ) |
Definition at line 1000 of file readerfactory.c.
| void RFCleanupReaders | ( | void | ) |
Definition at line 1357 of file readerfactory.c.
| LONG RFClearReaderEventState | ( | READER_CONTEXT * | rContext, |
| SCARDHANDLE | hCard | ||
| ) |
Definition at line 1330 of file readerfactory.c.
| SCARDHANDLE RFCreateReaderHandle | ( | READER_CONTEXT * | rContext | ) |
Definition at line 1159 of file readerfactory.c.
| LONG RFInitializeReader | ( | READER_CONTEXT * | rContext | ) |
Definition at line 1073 of file readerfactory.c.
| LONG RFLoadReader | ( | READER_CONTEXT * | rContext | ) |
Definition at line 863 of file readerfactory.c.
| LONG RFLockSharing | ( | SCARDHANDLE | hCard, |
| READER_CONTEXT * | rContext | ||
| ) |
Definition at line 1008 of file readerfactory.c.
| LONG RFReaderInfo | ( | const char * | readerName, |
| READER_CONTEXT ** | sReader | ||
| ) |
Definition at line 810 of file readerfactory.c.
| LONG RFReaderInfoById | ( | SCARDHANDLE | hCard, |
| READER_CONTEXT ** | sReader | ||
| ) |
Definition at line 836 of file readerfactory.c.
| LONG RFRemoveReader | ( | const char * | readerName, |
| int | port | ||
| ) |
Definition at line 582 of file readerfactory.c.
| LONG RFRemoveReaderHandle | ( | READER_CONTEXT * | rContext, |
| SCARDHANDLE | hCard | ||
| ) |
Definition at line 1232 of file readerfactory.c.
| void RFSetReaderEventState | ( | READER_CONTEXT * | rContext, |
| DWORD | dwEvent | ||
| ) |
Definition at line 1261 of file readerfactory.c.
| LONG RFSetReaderName | ( | READER_CONTEXT * | rContext, |
| const char * | readerName, | ||
| const char * | libraryName, | ||
| int | port | ||
| ) |
Definition at line 694 of file readerfactory.c.
| LONG RFUnBindFunctions | ( | READER_CONTEXT * | rContext | ) |
Definition at line 978 of file readerfactory.c.
| void RFUnInitializeReader | ( | READER_CONTEXT * | rContext | ) |
Definition at line 1131 of file readerfactory.c.
| LONG RFUnloadReader | ( | READER_CONTEXT * | rContext | ) |
Definition at line 986 of file readerfactory.c.
| LONG RFUnlockAllSharing | ( | SCARDHANDLE | hCard, |
| READER_CONTEXT * | rContext | ||
| ) |
Definition at line 1057 of file readerfactory.c.
| LONG RFUnlockSharing | ( | SCARDHANDLE | hCard, |
| READER_CONTEXT * | rContext | ||
| ) |
Definition at line 1024 of file readerfactory.c.
|
static |
Definition at line 76 of file readerfactory.c.
|
static |
Definition at line 81 of file readerfactory.c.
|
static |
Definition at line 75 of file readerfactory.c.
| READER_STATE readerStates[PCSCLITE_MAX_READERS_CONTEXTS] |
Definition at line 74 of file readerfactory.c.
|
static |
Definition at line 73 of file readerfactory.c.