00001 /*************************************************************************** 00002 $RCSfile$ 00003 ------------------- 00004 cvs : $Id: request.h 30 2005-01-26 00:16:06Z aquamaniac $ 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 #ifndef CHIPCARD_CLIENT_REQUEST_H 00015 #define CHIPCARD_CLIENT_REQUEST_H 00016 00017 typedef struct LC_REQUEST LC_REQUEST; 00018 00019 #include <gwenhywfar/misc.h> 00020 #include <gwenhywfar/db.h> 00021 00022 #include <time.h> 00023 00024 #include <chipcard/client/card.h> 00025 00026 00027 GWEN_LIST_FUNCTION_DEFS(LC_REQUEST, LC_Request); 00028 00029 LC_REQUEST *LC_Request_new(LC_CARD *card, 00030 GWEN_DB_NODE *dbReq, 00031 uint32_t serverId, 00032 uint32_t ipcRequestId); 00033 void LC_Request_free(LC_REQUEST *rq); 00034 00035 GWEN_DB_NODE *LC_Request_GetRequestData(const LC_REQUEST *rq); 00036 time_t LC_Request_GetRequestTime(const LC_REQUEST *rq); 00037 00038 uint32_t LC_Request_GetRequestId(const LC_REQUEST *rq); 00039 void LC_Request_SetRequestId(LC_REQUEST *rq, uint32_t rqid); 00040 00041 uint32_t LC_Request_GetIpcRequestId(const LC_REQUEST *rq); 00042 void LC_Request_SetIpcRequestId(LC_REQUEST *rq, uint32_t rqid); 00043 00044 uint32_t LC_Request_GetServerId(const LC_REQUEST *rq); 00045 00046 LC_CARD *LC_Request_GetCard(const LC_REQUEST *rq); 00047 00048 00049 int LC_Request_GetIsAborted(const LC_REQUEST *rq); 00050 void LC_Request_SetIsAborted(LC_REQUEST *rq, int b); 00051 00052 00053 #endif /* CHIPCARD_CLIENT_REQUEST_H */ 00054 00055 00056