Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

readerclient.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile: readerclient.h,v $
00003  -------------------
00004  cvs         : $Id: readerclient.h,v 1.7 2003/05/08 12:26:36 aquamaniac Exp $
00005  begin       : Sat Jan 11 2003
00006  copyright   : (C) 2003 by Martin Preuss
00007  email       : martin@libchipcard.de
00008 
00009  ***************************************************************************
00010  *                                                                         *
00011  *   This library is free software; you can redistribute it and/or         *
00012  *   modify it under the terms of the GNU Lesser General Public            *
00013  *   License as published by the Free Software Foundation; either          *
00014  *   version 2.1 of the License, or (at your option) any later version.    *
00015  *                                                                         *
00016  *   This library is distributed in the hope that it will be useful,       *
00017  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00018  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00019  *   Lesser General Public License for more details.                       *
00020  *                                                                         *
00021  *   You should have received a copy of the GNU Lesser General Public      *
00022  *   License along with this library; if not, write to the Free Software   *
00023  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston,                 *
00024  *   MA  02111-1307  USA                                                   *
00025  *                                                                         *
00026  ***************************************************************************/
00027 
00028 
00029 #ifndef READERCLIENT_H
00030 #define READERCLIENT_H "$Id"
00031 
00032 
00033 #include <ctclient.h>
00034 
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif
00038 
00039 
00040 struct READERCLIENT_READERDESCRSTRUCT {
00041   unsigned int flags;
00042   char name[64];
00043   char type[64];
00044 };
00045 typedef struct READERCLIENT_READERDESCRSTRUCT READERCLIENT_READERDESCR;
00046 
00047 READERCLIENT_READERDESCR *ReaderClient_ReaderDescr_new();
00048 void ReaderClient_ReaderDescr_free(READERCLIENT_READERDESCR *rd);
00049 
00050 
00051 CHIPCARD_API ERRORCODE
00052   ReaderClient_RequestPing(CTCLIENTDATA *cd,
00053                            int *requestid,
00054                            int serviceid);
00055 CHIPCARD_API ERRORCODE
00056   ReaderClient_CheckPing(CTCLIENTDATA *cd,
00057                          int requestid);
00058 
00059 CHIPCARD_API ERRORCODE
00060   ReaderClient_RequestAllocReader(CTCLIENTDATA *cd,
00061                                   int *requestid,
00062                                   int serviceid,
00063                                   int tid);
00064 CHIPCARD_API ERRORCODE
00065   ReaderClient_CheckAllocReader(CTCLIENTDATA *cd,
00066                                 int requestid,
00067                                 int *tid,
00068                                 int *serviceId,
00069                                 READERCLIENT_READERDESCR **rd);
00070 
00071 CHIPCARD_API ERRORCODE
00072   ReaderClient_RequestReleaseReader(CTCLIENTDATA *cd,
00073                                     int *requestid,
00074                                     int serviceid,
00075                                     int tid);
00076 CHIPCARD_API ERRORCODE
00077   ReaderClient_CheckReleaseReader(CTCLIENTDATA *cd,
00078                                   int requestid);
00079 
00080 CHIPCARD_API ERRORCODE
00081   ReaderClient_RequestConnectReader(CTCLIENTDATA *cd,
00082                                     int *requestid,
00083                                     int serviceid,
00084                                     int tid,
00085                                     int cardId,
00086                                     int waitForIt);
00087 
00088 CHIPCARD_API ERRORCODE
00089   ReaderClient_CheckConnectReader(CTCLIENTDATA *cd,
00090                                   int requestid,
00091                                   int *result,
00092                                   char *atrbuffer,
00093                                   int *atrbufferlength);
00094 CHIPCARD_API ERRORCODE
00095   ReaderClient_RequestDisconnectReader(CTCLIENTDATA *cd,
00096                                        int *requestid,
00097                                        int serviceid,
00098                                        int tid);
00099 CHIPCARD_API ERRORCODE
00100   ReaderClient_CheckDisconnectReader(CTCLIENTDATA *cd,
00101                                      int requestid,
00102                                      int *result);
00103 CHIPCARD_API ERRORCODE
00104   ReaderClient_RequestCommandReader(CTCLIENTDATA *cd,
00105                                     int *requestid,
00106                                     int serviceid,
00107                                     int tid,
00108                                     const char *sendBuffer,
00109                                     int sendBufferLength);
00110 CHIPCARD_API ERRORCODE
00111   ReaderClient_CheckCommandReader(CTCLIENTDATA *cd,
00112                                   int requestid,
00113                                   int *result,
00114                                   char *recvBuffer,
00115                                   int *recvBufferLength);
00116 
00117 CHIPCARD_API ERRORCODE
00118   ReaderClient_RequestFindReader(CTCLIENTDATA *cd,
00119                                  int *requestid,
00120                                  int serviceid,
00121                                  const char *readerType,
00122                                  unsigned int readerFlags,
00123                                  unsigned int readerFlagsMask);
00124 CHIPCARD_API ERRORCODE
00125   ReaderClient_CheckFindReader(CTCLIENTDATA *cd,
00126                                int requestid,
00127                                int *readerbuffer,
00128                                int *readerBufferLength);
00129 
00130 CHIPCARD_API ERRORCODE
00131   ReaderClient_RequestStatReader(CTCLIENTDATA *cd,
00132                                  int *requestid,
00133                                  int serviceid,
00134                                  int tid);
00135 CHIPCARD_API ERRORCODE
00136   ReaderClient_CheckStatReader(CTCLIENTDATA *cd,
00137                                int requestid,
00138                                int *result,
00139                                unsigned int *status,
00140                                char *atrbuffer,
00141                                int *atrlen);
00142 
00143 
00144 CHIPCARD_API ERRORCODE
00145   ReaderClient_RequestWaitReader(CTCLIENTDATA *cd,
00146                                  int *requestid,
00147                                  int serviceid,
00148                                  int mustChange,
00149                                  const char *readerType,
00150                                  unsigned int readerFlags,
00151                                  unsigned int readerFlagsMask,
00152                                  unsigned int status,
00153                                  unsigned int statusMask,
00154                                   unsigned int statusDelta);
00155 
00156 
00157 CHIPCARD_API ERRORCODE
00158   ReaderClient_CheckWaitReader(CTCLIENTDATA *cd,
00159                                int requestid,
00160                                int *tid,
00161                                unsigned int *status,
00162                                unsigned int *readerflags,
00163                                unsigned int *cardId);
00164 
00165 CHIPCARD_API ERRORCODE
00166   ReaderClient_RequestStopWaitReader(CTCLIENTDATA *cd,
00167                                      int *requestid,
00168                                      int serviceid,
00169                                      int prevRequest);
00170 CHIPCARD_API ERRORCODE
00171   ReaderClient_CheckStopWaitReader(CTCLIENTDATA *cd,
00172                                    int requestid,
00173                                    int *result);
00174 
00175 CHIPCARD_API ERRORCODE
00176   ReaderClient_RequestStopOpenReader(CTCLIENTDATA *cd,
00177                                      int *requestid,
00178                                      int serviceid,
00179                                      int prevRequest);
00180 CHIPCARD_API ERRORCODE
00181   ReaderClient_CheckStopOpenReader(CTCLIENTDATA *cd,
00182                                    int requestid,
00183                                    int *result);
00184 
00185 #ifdef __cplusplus
00186 }
00187 #endif
00188 
00189 #endif
00190 

Generated on Fri Dec 3 23:10:24 2004 for libchipcard by  doxygen 1.3.9.1