libchipcard  5.1.6
client.h
Go to the documentation of this file.
1 /***************************************************************************
2  begin : Mon Mar 01 2004
3  copyright : (C) 2004-2010 by Martin Preuss
4  email : martin@libchipcard.de
5 
6  ***************************************************************************
7  * Please see toplevel file COPYING for license details *
8  ***************************************************************************/
9 
10 
11 #ifndef CHIPCARD_CLIENT_CLIENT_H
12 #define CHIPCARD_CLIENT_CLIENT_H
13 
14 
18 
19 #include <gwenhywfar/inherit.h>
20 #include <chipcard/chipcard.h>
21 
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #define LC_DEFAULT_SHORT_TIMEOUT 10
28 #define LC_DEFAULT_LONG_TIMEOUT 30
29 #define LC_DEFAULT_VERY_LONG_TIMEOUT 60
30 
31 
32 
33 typedef struct LC_CLIENT LC_CLIENT;
34 GWEN_INHERIT_FUNCTION_LIB_DEFS(LC_CLIENT, CHIPCARD_API)
35 
36 
37 
40 typedef enum {
59 
60 
64 typedef enum {
68 
69 
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 
76 #include <chipcard/card.h>
77 
78 
79 #ifdef __cplusplus
80 extern "C" {
81 #endif
82 
83 
90 
97 LC_CLIENT *LC_Client_new(const char *programName, const char *programVersion);
98 
104 void LC_Client_free(LC_CLIENT *cl);
105 
114 
121 
122 
123 
126 
129 
130 
132 LC_CLIENT_RESULT LC_Client_GetNextCard(LC_CLIENT *cl, LC_CARD **pCard, int timeout);
133 
136 
137 
144 /*{@*/
146 const char *LC_Client_GetProgramName(const LC_CLIENT *cl);
147 
149 const char *LC_Client_GetProgramVersion(const LC_CLIENT *cl);
150 
154 #ifdef __cplusplus
155 }
156 #endif
157 
158 
161 #endif /* CHIPCARD_CLIENT_CLIENT_H */
162 
163 
164 
Definition: client.h:53
LC_CLIENT_CMDTARGET
Definition: client.h:64
Definition: client.h:57
Definition: client.h:50
CHIPCARD_API LC_CLIENT_RESULT LC_Client_ReleaseCard(LC_CLIENT *cl, LC_CARD *card)
Definition: client.h:55
Definition: client.h:52
Definition: client.h:66
Definition: client.h:42
Definition: client.h:47
Definition: client.h:46
struct LC_CLIENT LC_CLIENT
Definition: client.h:33
CHIPCARD_API LC_CLIENT_RESULT LC_Client_GetNextCard(LC_CLIENT *cl, LC_CARD **pCard, int timeout)
Definition: client.h:49
Definition: client.h:56
Definition: client.h:51
Definition: client.h:43
CHIPCARD_API void LC_Client_free(LC_CLIENT *cl)
#define CHIPCARD_API
Definition: chipcard.h:50
CHIPCARD_API const char * LC_Client_GetProgramName(const LC_CLIENT *cl)
LC_CLIENT_RESULT
Definition: client.h:40
CHIPCARD_API LC_CLIENT_RESULT LC_Client_Init(LC_CLIENT *cl)
CHIPCARD_API LC_CLIENT_RESULT LC_Client_Start(LC_CLIENT *cl)
Definition: client.h:44
CHIPCARD_API const char * LC_Client_GetProgramVersion(const LC_CLIENT *cl)
Definition: client.h:41
Definition: client.h:45
CHIPCARD_API LC_CLIENT_RESULT LC_Client_Fini(LC_CLIENT *cl)
CHIPCARD_API LC_CLIENT_RESULT LC_Client_Stop(LC_CLIENT *cl)
Definition: client.h:65
CHIPCARD_API LC_CLIENT * LC_Client_new(const char *programName, const char *programVersion)
struct LC_CARD LC_CARD
Definition: card.h:25
Definition: client.h:54
Definition: client.h:48