eventhandler.h

Go to the documentation of this file.
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 1499 2005-05-03 06:36:38Z 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 lockState;
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     void EHSetSharingEvent(PREADER_CONTEXT, DWORD);
00048 
00049 #ifdef __cplusplus
00050 }
00051 #endif
00052 
00053 #endif                          /* __eventhandler_h__ */

Generated on Wed Jun 6 11:37:24 2007 for pcsc-lite by  doxygen 1.4.7