Logo Search packages:      
Sourcecode: pcsc-lite version File versions

readerfactory.c File Reference


Detailed Description

This keeps track of a list of currently available reader structures.

Definition in file readerfactory.c.

#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 "misc.h"
#include "pcsclite.h"
#include "ifdhandler.h"
#include "debuglog.h"
#include "thread_generic.h"
#include "readerfactory.h"
#include "dyn_generic.h"
#include "sys_generic.h"
#include "eventhandler.h"
#include "ifdwrapper.h"
#include "hotplug.h"
#include "strlcpycat.h"
#include "configfile.h"

Go to the source code of this file.

Defines

#define FALSE   0
#define GET_ADDRESS_OPTIONALv1(field, function, code)
#define GET_ADDRESS_OPTIONALv2(s, code)
#define GET_ADDRESS_OPTIONALv3(s, code)
#define GET_ADDRESSv1(field, function)
#define GET_ADDRESSv2(s)
#define GET_ADDRESSv3(s)
#define TRUE   1

Functions

LONG RFAddReader (LPSTR lpcReader, DWORD dwPort, LPSTR lpcLibrary, LPSTR lpcDevice)
LONG RFAddReaderHandle (PREADER_CONTEXT rContext, SCARDHANDLE hCard)
LONG RFAllocateReaderSpace (void)
void RFAwakeAllReaders (void)
LONG RFBindFunctions (PREADER_CONTEXT rContext)
LONG RFCheckReaderEventState (PREADER_CONTEXT rContext, SCARDHANDLE hCard)
LONG RFCheckReaderStatus (PREADER_CONTEXT rContext)
LONG RFCheckSharing (DWORD hCard)
void RFCleanupReaders (int shouldExit)
LONG RFClearReaderEventState (PREADER_CONTEXT rContext, SCARDHANDLE hCard)
SCARDHANDLE RFCreateReaderHandle (PREADER_CONTEXT rContext)
LONG RFDestroyReaderHandle (SCARDHANDLE hCard)
LONG RFFindReaderHandle (SCARDHANDLE hCard)
LONG RFInitializeReader (PREADER_CONTEXT rContext)
LONG RFLoadReader (PREADER_CONTEXT rContext)
LONG RFLockSharing (DWORD hCard)
LONG RFReaderInfo (LPSTR lpcReader, PREADER_CONTEXT *sReader)
LONG RFReaderInfoById (DWORD dwIdentity, PREADER_CONTEXT *sReader)
LONG RFReaderInfoNamePort (DWORD dwPort, LPSTR lpcReader, PREADER_CONTEXT *sReader)
void RFReCheckReaderConf (void)
LONG RFRemoveReader (LPSTR lpcReader, DWORD dwPort)
LONG RFRemoveReaderHandle (PREADER_CONTEXT rContext, SCARDHANDLE hCard)
LONG RFSetReaderEventState (PREADER_CONTEXT rContext, DWORD dwEvent)
LONG RFSetReaderName (PREADER_CONTEXT rContext, LPSTR readerName, LPSTR libraryName, DWORD dwPort, DWORD dwSlot)
int RFStartSerialReaders (const char *readerconf)
void RFSuspendAllReaders (void)
LONG RFUnBindFunctions (PREADER_CONTEXT rContext)
LONG RFUnblockContext (SCARDCONTEXT hContext)
LONG RFUnblockReader (PREADER_CONTEXT rContext)
LONG RFUnInitializeReader (PREADER_CONTEXT rContext)
LONG RFUnloadReader (PREADER_CONTEXT rContext)
LONG RFUnlockSharing (DWORD hCard)

Variables

static char * ConfigFile = NULL
static int ConfigFileCRC = 0
static DWORD dwNumReadersContexts = 0
static PREADER_CONTEXT sReadersContexts [PCSCLITE_MAX_READERS_CONTEXTS]


Generated by  Doxygen 1.6.0   Back to index