00001 /* 00002 * MUSCLE SmartCard Development ( http://www.linuxnet.com ) 00003 * 00004 * Copyright (C) 1999 00005 * David Corcoran <corcoran@linuxnet.com> 00006 * Copyright (C) 2004 00007 * Ludovic Rousseau <ludovic.rousseau@free.fr> 00008 * 00009 * $Id: eventhandler.h 2544 2007-05-23 14:19:45Z rousseau $ 00010 */ 00011 00018 #ifndef __eventhandler_h__ 00019 #define __eventhandler_h__ 00020 00021 #ifdef __cplusplus 00022 extern "C" 00023 { 00024 #endif 00025 00030 typedef struct pubReaderStatesList 00031 { 00032 LONG readerID; 00033 char readerName[MAX_READERNAME]; 00034 DWORD readerState; 00035 LONG readerSharing; 00036 DWORD dummy; 00037 00038 UCHAR cardAtr[MAX_ATR_SIZE]; 00039 DWORD cardAtrLength; 00040 DWORD cardProtocol; 00041 } 00042 READER_STATE, *PREADER_STATE; 00043 00044 LONG EHInitializeEventStructures(void); 00045 LONG EHSpawnEventHandler(PREADER_CONTEXT); 00046 LONG EHDestroyEventHandler(PREADER_CONTEXT); 00047 00048 #ifdef __cplusplus 00049 } 00050 #endif 00051 00052 #endif /* __eventhandler_h__ */