00001 /*************************************************************************** 00002 $RCSfile$ 00003 ------------------- 00004 cvs : $Id: server.h 2 2005-01-02 10:05:37Z 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_SERVER_L_H 00015 #define CHIPCARD_CLIENT_SERVER_L_H 00016 00017 #include <gwenhywfar/misc.h> 00018 00019 typedef enum { 00020 LC_ServerStatusUnconnected=0, 00021 LC_ServerStatusWaitReady, 00022 LC_ServerStatusConnected, 00023 LC_ServerStatusAborted 00024 } LC_SERVER_STATUS; 00025 00026 typedef struct LC_SERVER LC_SERVER; 00027 GWEN_LIST_FUNCTION_DEFS(LC_SERVER, LC_Server); 00028 00029 LC_SERVER *LC_Server_new(uint32_t nid); 00030 void LC_Server_free(LC_SERVER *sv); 00031 00032 uint32_t LC_Server_GetCurrentCommand(const LC_SERVER *sv); 00033 void LC_Server_SetCurrentCommand(LC_SERVER *sv, 00034 uint32_t rid); 00035 00036 uint32_t LC_Server_GetServerId(const LC_SERVER *sv); 00037 00038 LC_SERVER_STATUS LC_Server_GetStatus(const LC_SERVER *sv); 00039 void LC_Server_SetStatus(LC_SERVER *sv, LC_SERVER_STATUS st); 00040 00041 00042 #endif /* CHIPCARD_CLIENT_SERVER_L_H */