00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef CHIPCARD_CLIENT_CLIENT_L_H
00015 #define CHIPCARD_CLIENT_CLIENT_L_H
00016
00017 #include "client.h"
00018 #include "card.h"
00019
00020 #include <gwenhywfar/msgengine.h>
00021
00022
00023 LC_CLIENT_RESULT LC_Client_ExecApdu(LC_CLIENT *cl,
00024 LC_CARD *card,
00025 const char *apdu,
00026 unsigned int len,
00027 GWEN_BUFFER *rbuf,
00028 LC_CLIENT_CMDTARGET t,
00029 int timeout);
00030
00031 LC_CLIENT_RESULT LC_Client_BuildApdu(LC_CLIENT *cl,
00032 LC_CARD *card,
00033 const char *command,
00034 GWEN_DB_NODE *cmdData,
00035 GWEN_BUFFER *gbuf);
00036
00037
00038 LC_CLIENT_RESULT LC_Client_ExecCommand(LC_CLIENT *cl,
00039 LC_CARD *card,
00040 const char *commandName,
00041 GWEN_DB_NODE *cmdData,
00042 GWEN_DB_NODE *rspData,
00043 int timeout);
00044
00045
00046 GWEN_XMLNODE *LC_Client_FindCardCommand(LC_CLIENT *cl,
00047 LC_CARD *card,
00048 const char *commandName);
00049
00050 int LC_Client_AddCardTypesByAtr(LC_CLIENT *cl, LC_CARD *card);
00051
00052 GWEN_XMLNODE *LC_Client_GetAppNode(LC_CLIENT *cl, const char *appName);
00053
00054 GWEN_XMLNODE *LC_Client_GetCardNode(LC_CLIENT *cl, const char *cardName);
00055
00056 GWEN_MSGENGINE *LC_Client_GetMsgEngine(const LC_CLIENT *cl);
00057
00058 int LC_Client_InitCommon();
00059 void LC_Client_FiniCommon();
00060
00061 GWEN_DB_NODE *LC_Client_GetCommonConfig();
00062
00063
00064 #endif
00065
00066
00067