|
| #define LC_DEFAULT_SHORT_TIMEOUT 10 |
| #define LC_DEFAULT_LONG_TIMEOUT 30 |
| #define LC_DEFAULT_VERY_LONG_TIMEOUT 60 |
| #define LC_CLIENT_TIMEOUT_NONE 0 |
| #define LC_CLIENT_TIMEOUT_FOREVER (-1) |
| typedef void(* LC_CLIENT_RECV_NOTIFICATION_FN)(LC_CLIENT *cl, const LC_NOTIFICATION *n) |
| enum LC_CLIENT_RESULT |
Result codes for operations.
| enum LC_CLIENT_CMDTARGET |
| CHIPCARD_API LC_CLIENT_RESULT LC_Client_Init | ( | LC_CLIENT * | cl | ) |
Init Libchipcard3. 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 Libchipcard3. Unloads all data files.
| CHIPCARD_API LC_CLIENT_RESULT LC_Client_Start | ( | LC_CLIENT * | cl | ) |
Tell the ressource manager that we are now about to access chipcards. When using Libchipcard3's own resource manager then upon receiption of this call the ressource manager starts connecting card readers. Only then the readers are allocated. Without calling this function the other function LC_Client_GetNextCard will never return a card.
| CHIPCARD_API LC_CLIENT_RESULT LC_Client_Stop | ( | LC_CLIENT * | cl | ) |
Tell the resource manager that we don't need more cards. When the last allocated card becomes unused the ressource manager is allowed to deallocate the readers. Your application should always call this function as soon as it is finished accessing cards.
| CHIPCARD_API LC_CLIENT_RESULT LC_Client_GetNextCard | ( | LC_CLIENT * | cl, | |
| LC_CARD ** | pCard, | |||
| int | timeout | |||
| ) |
Wait for the next card to become available. The application must call LC_Client_Start prior to calling this function otherwise it will never return a card (because no readers are allocated).
| CHIPCARD_API LC_CLIENT_RESULT LC_Client_ReleaseCard | ( | LC_CLIENT * | cl, | |
| LC_CARD * | card | |||
| ) |
| 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 const char* LC_Client_GetIoTypeName | ( | const LC_CLIENT * | cl | ) |
Returns the ressource manager type this client uses (see LC_Client_Factory)
| CHIPCARD_API const char* LC_Client_GetProgramName | ( | const LC_CLIENT * | cl | ) |
| CHIPCARD_API const char* LC_Client_GetProgramVersion | ( | const LC_CLIENT * | cl | ) |
| CHIPCARD_API int LC_Client_GetShortTimeout | ( | const LC_CLIENT * | cl | ) |
| CHIPCARD_API int LC_Client_GetLongTimeout | ( | const LC_CLIENT * | cl | ) |
| CHIPCARD_API int LC_Client_GetVeryLongTimeout | ( | const LC_CLIENT * | cl | ) |
| CHIPCARD_API GWEN_XMLNODE* LC_Client_GetAppNodes | ( | const LC_CLIENT * | cl | ) |
| CHIPCARD_API GWEN_XMLNODE* LC_Client_GetCardNodes | ( | const LC_CLIENT * | cl | ) |
| CHIPCARD_API GWEN_DB_NODE* LC_Client_GetReaderConfig | ( | const LC_CLIENT * | cl, | |
| const char * | reader | |||
| ) |
| CHIPCARD_API LCM_MONITOR* LC_Client_GetMonitor | ( | const LC_CLIENT * | cl | ) |
| CHIPCARD_API LC_CLIENT_RESULT LC_Client_SetNotify | ( | LC_CLIENT * | cl, | |
| GWEN_TYPE_UINT32 | flags | |||
| ) |
| CHIPCARD_API LC_CLIENT_RECV_NOTIFICATION_FN LC_Client_SetRecvNotificationFn | ( | LC_CLIENT * | cl, | |
| LC_CLIENT_RECV_NOTIFICATION_FN | fn | |||
| ) |
1.5.3