00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef CHIPCARD_SERVER_SL_SLAVEMGR_L_H
00016 #define CHIPCARD_SERVER_SL_SLAVEMGR_L_H
00017
00018 typedef struct LCSL_SLAVEMANAGER LCSL_SLAVEMANAGER;
00019
00020 #include "server_l.h"
00021
00022
00023
00024 LCSL_SLAVEMANAGER *LCSL_SlaveManager_new(LCS_SERVER *server);
00025 void LCSL_SlaveManager_free(LCSL_SLAVEMANAGER *slm);
00026
00027 int LCSL_SlaveManager_HandleRequest(LCSL_SLAVEMANAGER *slm,
00028 uint32_t rid,
00029 const char *name,
00030 GWEN_DB_NODE *dbReq);
00031
00032 int LCSL_SlaveManager_Work(LCSL_SLAVEMANAGER *slm);
00033
00034
00035 int LCSL_SlaveManager_Init(LCSL_SLAVEMANAGER *slm, GWEN_DB_NODE *db);
00036 int LCSL_SlaveManager_Fini(LCSL_SLAVEMANAGER *slm, GWEN_DB_NODE *db);
00037
00038 void LCSL_SlaveManager_DumpState(const LCSL_SLAVEMANAGER *slm);
00039
00040 void LCSL_SlaveManager_ReaderChg(LCSL_SLAVEMANAGER *slm,
00041 uint32_t did,
00042 LCCO_READER *r,
00043 LC_READER_STATUS newSt,
00044 const char *reason);
00045
00046 void LCSL_SlaveManager_NewReader(LCSL_SLAVEMANAGER *slm,
00047 LCCO_READER *r);
00048
00049 void LCSL_SlaveManager_NewCard(LCSL_SLAVEMANAGER *slm, LCCO_CARD *card);
00050
00051 void LCSL_SlaveManager_CardRemoved(LCSL_SLAVEMANAGER *slm, LCCO_CARD *card);
00052
00053
00054 void LCSL_SlaveManager_ConnectionDown(LCSL_SLAVEMANAGER *slm, GWEN_IO_LAYER *nl);
00055
00056
00057
00058 #endif
00059
00060
00061