libchipcard 5.0.0

client_l.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     begin       : Mon Mar 01 2004
00003     copyright   : (C) 2004-2010 by Martin Preuss
00004     email       : martin@libchipcard.de
00005 
00006  ***************************************************************************
00007  *          Please see toplevel file COPYING for license details           *
00008  ***************************************************************************/
00009 
00010 
00011 #ifndef CHIPCARD_CLIENT_CLIENT_L_H
00012 #define CHIPCARD_CLIENT_CLIENT_L_H
00013 
00014 #include "client.h"
00015 #include "card.h"
00016 
00017 #include <gwenhywfar/msgengine.h>
00018 
00019 
00020 LC_CLIENT_RESULT LC_Client_ExecApdu(LC_CLIENT *cl,
00021                                     LC_CARD *card,
00022                                     const char *apdu,
00023                                     unsigned int len,
00024                                     GWEN_BUFFER *rbuf,
00025                                     LC_CLIENT_CMDTARGET t);
00026 
00027 LC_CLIENT_RESULT LC_Client_BuildApdu(LC_CLIENT *cl,
00028                                      LC_CARD *card,
00029                                      const char *command,
00030                                      GWEN_DB_NODE *cmdData,
00031                                      GWEN_BUFFER *gbuf);
00032 
00033 
00034 LC_CLIENT_RESULT LC_Client_ExecCommand(LC_CLIENT *cl,
00035                                        LC_CARD *card,
00036                                        const char *commandName,
00037                                        GWEN_DB_NODE *cmdData,
00038                                        GWEN_DB_NODE *rspData);
00039 
00040 
00041 GWEN_XMLNODE *LC_Client_FindCardCommand(LC_CLIENT *cl,
00042                                         LC_CARD *card,
00043                                         const char *commandName);
00044 
00045 int LC_Client_AddCardTypesByAtr(LC_CLIENT *cl, LC_CARD *card);
00046 
00047 GWEN_XMLNODE *LC_Client_GetAppNode(LC_CLIENT *cl, const char *appName);
00048 
00049 GWEN_XMLNODE *LC_Client_GetCardNode(LC_CLIENT *cl, const char *cardName);
00050 
00051 GWEN_MSGENGINE *LC_Client_GetMsgEngine(const LC_CLIENT *cl);
00052 
00053 int LC_Client_InitCommon();
00054 void LC_Client_FiniCommon();
00055 
00056 GWEN_DB_NODE *LC_Client_GetCommonConfig();
00057 
00058 
00059 #endif /* CHIPCARD_CLIENT_CLIENT_L_H */
00060 
00061 
00062