libchipcard 5.1.6
|
#include <gwenhywfar/inherit.h>
#include <chipcard/chipcard.h>
#include <chipcard/card.h>
Go to the source code of this file.
Macros | |
#define | LC_DEFAULT_SHORT_TIMEOUT 10 |
#define | LC_DEFAULT_LONG_TIMEOUT 30 |
#define | LC_DEFAULT_VERY_LONG_TIMEOUT 60 |
Typedefs | |
typedef struct LC_CLIENT | LC_CLIENT |
Functions | |
Main API | |
To work with this API you'll need to create a client object first. This is normally done by LC_Client_new. | |
CHIPCARD_API LC_CLIENT * | LC_Client_new (const char *programName, const char *programVersion) |
CHIPCARD_API void | LC_Client_free (LC_CLIENT *cl) |
CHIPCARD_API LC_CLIENT_RESULT | LC_Client_Init (LC_CLIENT *cl) |
CHIPCARD_API LC_CLIENT_RESULT | LC_Client_Fini (LC_CLIENT *cl) |
CHIPCARD_API LC_CLIENT_RESULT | LC_Client_Start (LC_CLIENT *cl) |
CHIPCARD_API LC_CLIENT_RESULT | LC_Client_Stop (LC_CLIENT *cl) |
CHIPCARD_API LC_CLIENT_RESULT | LC_Client_GetNextCard (LC_CLIENT *cl, LC_CARD **pCard, int timeout) |
CHIPCARD_API LC_CLIENT_RESULT | LC_Client_ReleaseCard (LC_CLIENT *cl, LC_CARD *card) |
Informational Functions | |
CHIPCARD_API const char * | LC_Client_GetProgramName (const LC_CLIENT *cl) |
CHIPCARD_API const char * | LC_Client_GetProgramVersion (const LC_CLIENT *cl) |
#define LC_DEFAULT_SHORT_TIMEOUT 10 |
#define LC_DEFAULT_LONG_TIMEOUT 30 |
#define LC_DEFAULT_VERY_LONG_TIMEOUT 60 |
enum LC_CLIENT_RESULT |
Result codes for operations.
enum LC_CLIENT_CMDTARGET |
Targets for commands (used by LC_Card_ExecApdu)
Enumerator | |
---|---|
LC_Client_CmdTargetCard | |
LC_Client_CmdTargetReader |
CHIPCARD_API LC_CLIENT * LC_Client_new | ( | const char * | programName, |
const char * | programVersion ) |
This function creates a libchipcard client.
programName | name of the program which wants to create the client |
programVersion | version string of that program |
CHIPCARD_API void LC_Client_free | ( | LC_CLIENT * | cl | ) |
Release all ressources associated with Libchipcard3. This must be called at the end of the application to avoid memory leaks.
CHIPCARD_API LC_CLIENT_RESULT LC_Client_Init | ( | LC_CLIENT * | cl | ) |
Init Libchipcard. This functions reads the configuration file and the card command description files. It does not allocate the readers (see LC_Client_Start), so it is perfectly save to call this function upon startup of the application.
CHIPCARD_API LC_CLIENT_RESULT LC_Client_Fini | ( | LC_CLIENT * | cl | ) |
Deinit Libchipcard. Unloads all data files.
CHIPCARD_API LC_CLIENT_RESULT LC_Client_Start | ( | LC_CLIENT * | cl | ) |
CHIPCARD_API LC_CLIENT_RESULT LC_Client_Stop | ( | LC_CLIENT * | cl | ) |
CHIPCARD_API LC_CLIENT_RESULT LC_Client_GetNextCard | ( | LC_CLIENT * | cl, |
LC_CARD ** | pCard, | ||
int | timeout ) |
CHIPCARD_API LC_CLIENT_RESULT LC_Client_ReleaseCard | ( | LC_CLIENT * | cl, |
LC_CARD * | card ) |
CHIPCARD_API const char * LC_Client_GetProgramName | ( | const LC_CLIENT * | cl | ) |
CHIPCARD_API const char * LC_Client_GetProgramVersion | ( | const LC_CLIENT * | cl | ) |