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

eventhandler.h

Go to the documentation of this file.
/*
 * MUSCLE SmartCard Development ( http://www.linuxnet.com )
 *
 * Copyright (C) 1999
 *  David Corcoran <corcoran@linuxnet.com>
 * Copyright (C) 2004
 *  Ludovic Rousseau <ludovic.rousseau@free.fr>
 *
 * $Id: eventhandler.h 3259 2009-01-02 14:32:44Z rousseau $
 */

/**
 * @file
 * @brief This handles card insertion/removal events, updates ATR,
 * protocol, and status information.
 */

#ifndef __eventhandler_h__
#define __eventhandler_h__

#include <stdint.h>

#ifdef __cplusplus
extern "C"
{
#endif

      /**
       * Define an exported public reader state structure so each
       * application gets instant notification of changes in state.
       */
00032       typedef struct pubReaderStatesList
      {
            int32_t readerID;
            char readerName[MAX_READERNAME];
            uint32_t readerState;
            int32_t readerSharing;

            UCHAR cardAtr[MAX_ATR_SIZE];
            uint32_t cardAtrLength;
            uint32_t cardProtocol;
      }
      READER_STATE, *PREADER_STATE;

      LONG EHInitializeEventStructures(void);
      LONG EHSpawnEventHandler(PREADER_CONTEXT,
            /*@null@*/ RESPONSECODE (*)(DWORD));
      LONG EHDestroyEventHandler(PREADER_CONTEXT);

#ifdef __cplusplus
}
#endif

#endif                                          /* __eventhandler_h__ */

Generated by  Doxygen 1.6.0   Back to index