00001 /*************************************************************************** 00002 $RCSfile: chameleon.h,v $ 00003 ------------------- 00004 cvs : $Id: chameleon.h,v 1.3 2003/05/08 12:26:37 aquamaniac Exp $ 00005 begin : Wed Oct 03 2002 00006 copyright : (C) 2002 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 CHAMELEON_H 00030 #define CHAMELEON_H 00031 00032 00033 /* setup DLL imports/exports for Windoze */ 00034 #ifdef __declspec 00035 # if BUILDING_CHIPCARD_DLL 00036 # define CHIPCARD_API __declspec (dllexport) 00037 # else /* Not BUILDING_CHIPCARD_DLL */ 00038 # define CHIPCARD_API __declspec (dllimport) 00039 # endif /* Not BUILDING_CHIPCARD_DLL */ 00040 #else 00041 # define CHIPCARD_API 00042 #endif 00043 00044 #include "chameleon/error.h" 00045 00046 #ifdef __cplusplus 00047 extern "C" { 00048 #endif 00049 00050 00051 CHIPCARD_API ERRORCODE Chameleon_Init(); 00052 CHIPCARD_API ERRORCODE Chameleon_Fini(); 00053 00054 CHIPCARD_API void Chameleon_DumpString(const char *s, int l); 00055 00056 00057 #ifdef __cplusplus 00058 } 00059 #endif 00060 00061 #endif // CHAMELEON_H 00062