cm_card_l.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile$
00003                              -------------------
00004     cvs         : $Id: cm_card_l.h 388 2007-05-02 19:24:12Z christian $
00005     begin       : Mon Mar 01 2004
00006     copyright   : (C) 2004 by Martin Preuss
00007     email       : martin@libchipcard.de
00008 
00009  ***************************************************************************
00010  *          Please see toplevel file COPYING for license details           *
00011  ***************************************************************************/
00012 
00013 
00014 
00015 #ifndef CHIPCARD_SERVER2_CM_CARD_L_H
00016 #define CHIPCARD_SERVER2_CM_CARD_L_H
00017 
00018 #include <chipcard3/chipcard3.h>
00019 #include "common/card.h"
00020 #include <time.h>
00021 
00022 
00023 void LCCM_Card_extend(LCCO_CARD *cd);
00024 void LCCM_Card_unextend(LCCO_CARD *cd);
00025 
00026 
00034 int LCCM_Card_RequestLock(LCCO_CARD *cd,
00035                           GWEN_TYPE_UINT32 clid,
00036                           int duration,
00037                           int maxLocks);
00038 
00042 int LCCM_Card_CheckRequest(LCCO_CARD *cd, GWEN_TYPE_UINT32 clid);
00043 
00048 int LCCM_Card_Unlock(LCCO_CARD *cd, GWEN_TYPE_UINT32 clid);
00049 
00050 
00057 int LCCM_Card_RemoveRequest(LCCO_CARD *cd, GWEN_TYPE_UINT32 clid);
00058 
00059 
00065 void LCCM_Card_RemoveAllClientRequests(LCCO_CARD *cd,
00066                                        GWEN_TYPE_UINT32 clid);
00067 
00068 int LCCM_Card_HasLockRequests(const LCCO_CARD *cd);
00069 
00070 
00071 int LCCM_Card_CheckAccess(LCCO_CARD *cd, GWEN_TYPE_UINT32 clid);
00072 
00073 
00074 time_t LCCM_Card_GetUnusedSince(const LCCO_CARD *cd);
00075 LC_CARD_STATUS LCCM_Card_GetLastStatus(const LCCO_CARD *cd);
00076 void LCCM_Card_SetLastStatus(LCCO_CARD *cd, LC_CARD_STATUS st);
00077 int LCCM_Card_GetReaderIsInUse(const LCCO_CARD *cd);
00078 void LCCM_Card_SetReaderIsInUse(LCCO_CARD *cd, int i);
00079 
00080 time_t LCCM_Card_GetLastAdTime(const LCCO_CARD *cd);
00081 void LCCM_Card_SetLastAdTime(LCCO_CARD *cd, time_t t);
00082 
00083 
00084 GWEN_TYPE_UINT32 LCCM_Card_GetReaderLockId(const LCCO_CARD *cd);
00085 void LCCM_Card_SetReaderLockId(LCCO_CARD *cd, GWEN_TYPE_UINT32 i);
00086 
00087 
00088 
00089 
00090 #endif /* CHIPCARD_SERVER2_CM_CARD_L_H */
00091 

Generated on Sat Sep 22 04:43:21 2007 for libchipcard2 by  doxygen 1.5.3