Data Structures | Defines | Typedefs | Functions

eventhandler.h File Reference

This handles card insertion/removal events, updates ATR, protocol, and status information. More...

#include <stdint.h>
Include dependency graph for eventhandler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pubReaderStatesList
 Define an exported public reader state structure so each application gets instant notification of changes in state. More...

Defines

#define SCARD_LAST_CONTEXT   1
 Some defines for context stack.
#define SCARD_NO_CONTEXT   0
 Some defines for context stack.
#define SCARD_EXCLUSIVE_CONTEXT   -1
 Some defines for context stack.

Typedefs

typedef struct pubReaderStatesList READER_STATE
 Define an exported public reader state structure so each application gets instant notification of changes in state.

Functions

LONG EHTryToUnregisterClientForEvent (int32_t filedes)
 Try to unregisted a client If no client is found then do not log an error.
LONG EHRegisterClientForEvent (int32_t filedes)
LONG EHUnregisterClientForEvent (int32_t filedes)
 Unregister a client and log an error if the client is not found.
LONG EHSignalEventToClients (void)
 Sends an asynchronous event to any waiting client.
LONG EHInitializeEventStructures (void)
LONG EHSpawnEventHandler (READER_CONTEXT *, RESPONSECODE(*)(DWORD))
LONG EHDestroyEventHandler (READER_CONTEXT *)

Detailed Description

This handles card insertion/removal events, updates ATR, protocol, and status information.

Definition in file eventhandler.h.


Define Documentation

#define SCARD_EXCLUSIVE_CONTEXT   -1

Some defines for context stack.

Definition at line 59 of file eventhandler.h.

Referenced by SCardConnect(), SCardDisconnect(), SCardGetStatusChange(), and SCardReconnect().

#define SCARD_LAST_CONTEXT   1

Some defines for context stack.

Definition at line 55 of file eventhandler.h.

Referenced by SCardGetStatusChange(), and SCardReconnect().

#define SCARD_NO_CONTEXT   0

Some defines for context stack.

Definition at line 57 of file eventhandler.h.

Referenced by SCardConnect(), and SCardGetStatusChange().