pcsc-lite  1.8.20
Functions | Variables
eventhandler.c File Reference

This keeps track of card insertion/removal events and updates ATR, protocol, and status information. More...

#include "config.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "misc.h"
#include "pcscd.h"
#include "debuglog.h"
#include "readerfactory.h"
#include "eventhandler.h"
#include "dyn_generic.h"
#include "sys_generic.h"
#include "ifdwrapper.h"
#include "prothandler.h"
#include "utils.h"
#include "winscard_svc.h"
#include "simclist.h"

Go to the source code of this file.

Functions

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

Variables

static list_t ClientsWaitingForEvent
 list of client file descriptors
 
pthread_mutex_t ClientsWaitingForEvent_lock
 lock for the above list
 

Detailed Description

This keeps track of card insertion/removal events and updates ATR, protocol, and status information.

Definition in file eventhandler.c.