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
24extern "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
33typedef struct LC_CLIENT LC_CLIENT;
34GWEN_INHERIT_FUNCTION_LIB_DEFS(LC_CLIENT, CHIPCARD_API)
35
36
37
59
60
68
69
70
71#ifdef __cplusplus
72}
73#endif
74
75
76#include <chipcard/card.h>
77
78
79#ifdef __cplusplus
80extern "C" {
81#endif
82
83
90
97LC_CLIENT *LC_Client_new(const char *programName, const char *programVersion);
98
105
114
121
122
123
126
129
130
133
136
137
144/*{@*/
146const char *LC_Client_GetProgramName(const LC_CLIENT *cl);
147
150
154#ifdef __cplusplus
155}
156#endif
157
158
161#endif /* CHIPCARD_CLIENT_CLIENT_H */
162
163
164
struct LC_CARD LC_CARD
Definition card.h:25
#define CHIPCARD_API
Definition chipcard.h:50
CHIPCARD_API const char * LC_Client_GetProgramName(const LC_CLIENT *cl)
LC_CLIENT_CMDTARGET
Definition client.h:64
@ LC_Client_CmdTargetCard
Definition client.h:65
@ LC_Client_CmdTargetReader
Definition client.h:66
CHIPCARD_API LC_CLIENT_RESULT LC_Client_Start(LC_CLIENT *cl)
CHIPCARD_API void LC_Client_free(LC_CLIENT *cl)
CHIPCARD_API LC_CLIENT_RESULT LC_Client_ReleaseCard(LC_CLIENT *cl, LC_CARD *card)
LC_CLIENT_RESULT
Definition client.h:40
@ LC_Client_ResultNotSupported
Definition client.h:52
@ LC_Client_ResultAborted
Definition client.h:46
@ LC_Client_ResultNoData
Definition client.h:50
@ LC_Client_ResultDontExecute
Definition client.h:57
@ LC_Client_ResultNotFound
Definition client.h:54
@ LC_Client_ResultCmdError
Definition client.h:44
@ LC_Client_ResultInvalid
Definition client.h:47
@ LC_Client_ResultIoError
Definition client.h:55
@ LC_Client_ResultBadPin
Definition client.h:56
@ LC_Client_ResultInternal
Definition client.h:48
@ LC_Client_ResultDataError
Definition client.h:45
@ LC_Client_ResultCfgError
Definition client.h:53
@ LC_Client_ResultOk
Definition client.h:41
@ LC_Client_ResultIpcError
Definition client.h:43
@ LC_Client_ResultGeneric
Definition client.h:49
@ LC_Client_ResultWait
Definition client.h:42
@ LC_Client_ResultCardRemoved
Definition client.h:51
CHIPCARD_API LC_CLIENT_RESULT LC_Client_GetNextCard(LC_CLIENT *cl, LC_CARD **pCard, int timeout)
CHIPCARD_API LC_CLIENT_RESULT LC_Client_Init(LC_CLIENT *cl)
CHIPCARD_API LC_CLIENT * LC_Client_new(const char *programName, const char *programVersion)
CHIPCARD_API LC_CLIENT_RESULT LC_Client_Fini(LC_CLIENT *cl)
CHIPCARD_API LC_CLIENT_RESULT LC_Client_Stop(LC_CLIENT *cl)
CHIPCARD_API const char * LC_Client_GetProgramVersion(const LC_CLIENT *cl)
struct LC_CLIENT LC_CLIENT
Definition client.h:33