gwenhywfarapi.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile$
00003                              -------------------
00004     cvs         : $Id: gwenhywfarapi.h 966 2006-01-19 14:54:39Z cstim $
00005     begin       : Wed Sep 02 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 #ifndef GWENHYWFARAPI_H
00029 #define GWENHYWFARAPI_H
00030 
00031 #include <gwenhywfar/types.h>
00032 
00033 
00034 #ifdef BUILDING_GWENHYWFAR
00035   /* building Gwenhywfar */
00036 # if GWENHYWFAR_SYS_IS_WINDOWS
00037     /* for windows */
00038 #   ifdef __declspec
00039 #     define GWENHYWFAR_API __declspec (dllexport)
00040 #   else /* if __declspec */
00041 #     define GWENHYWFAR_API
00042 #   endif /* if NOT __declspec */
00043 # else
00044     /* for non-win32 */
00045 #   ifdef GCC_WITH_VISIBILITY_ATTRIBUTE
00046 #     define GWENHYWFAR_API __attribute__((visibility("default")))
00047 #   else
00048 #     define GWENHYWFAR_API
00049 #   endif
00050 # endif
00051 #else
00052   /* not building Gwenhywfar */
00053 # if GWENHYWFAR_SYS_IS_WINDOWS
00054     /* for windows */
00055 #   ifdef __declspec
00056 #     define GWENHYWFAR_API __declspec (dllimport)
00057 #   else /* if __declspec */
00058 #     define GWENHYWFAR_API
00059 #   endif /* if NOT __declspec */
00060 # else
00061     /* for non-win32 */
00062 #   define GWENHYWFAR_API
00063 # endif
00064 #endif
00065 
00066 
00067 
00068 /* Convenience macros to test the versions of glibc and gcc. Taken
00069    from <features.h> which does not contain this on MinGW systems.  */
00070 #ifndef __GNUC_PREREQ
00071 # if defined __GNUC__ && defined __GNUC_MINOR__
00072 #  define __GNUC_PREREQ(maj, min) \
00073         ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
00074 # else
00075 #  define __GNUC_PREREQ(maj, min) 0
00076 # endif
00077 #endif /* __GNUC_PREREQ */
00078 
00079 
00080 /* Taken from <sys/cdefs.h> which does not contain this on MinGW
00081    systems.  */
00082 #ifndef __STRING
00083 # define __STRING(x)     #x
00084 #endif /* __STRING */
00085 
00086 
00087 /* This is needed for PalmOS, because it define some functions needed */
00088 #include <string.h>
00089 #include <gwenhywfar/system.h>
00090 
00091 
00092 #ifdef __GNUC__
00093 # define DEPRECATED __attribute__((deprecated))
00094 #else
00095 # define DEPRECATED
00096 #endif /* __GNUC__ */
00097 
00098 
00099 #ifndef GWEN_NO_COMPAT
00100 
00101 #define GWEN_ArgsTypeChar GWEN_ArgsType_Char
00102 #define GWEN_ArgsTypeInt GWEN_ArgsType_Int
00103 
00104 #define GWEN_ArgsOutTypeTXT GWEN_ArgsOutType_Txt
00105 #define GWEN_ArgsOutTypeHTML GWEN_ArgsOutType_Html
00106 
00107 #define GWEN_StringList2_IntertModeAlwaysAdd GWEN_StringList2_IntertMode_AlwaysAdd
00108 #define GWEN_StringList2_IntertModeNoDouble GWEN_StringList2_IntertMode_NoDouble
00109 #define GWEN_StringList2_IntertModeReuse GWEN_StringList2_IntertMode_Reuse
00110 
00111 #define GWEN_LoggerTypeConsole GWEN_LoggerType_Console
00112 #define GWEN_LoggerTypeFile GWEN_LoggerType_File
00113 #define GWEN_LoggerTypeSyslog GWEN_LoggerType_Syslog
00114 #define GWEN_LoggerTypeFunction GWEN_LoggerType_Function
00115 #define GWEN_LoggerTypeUnknown GWEN_LoggerType_Unknown
00116 
00117 #define GWEN_LoggerFacilityAuth GWEN_LoggerFacility_Auth
00118 #define GWEN_LoggerFacilityDaemon GWEN_LoggerFacility_Daemon
00119 #define GWEN_LoggerFacilityMail GWEN_LoggerFacility_Mail
00120 #define GWEN_LoggerFacilityNews GWEN_LoggerFacility_News
00121 #define GWEN_LoggerFacilityUser GWEN_LoggerFacility_User
00122 #define GWEN_LoggerFacilityUnknown GWEN_LoggerFacility_Unknown
00123 
00124 #define GWEN_LoggerLevelEmergency GWEN_LoggerLevel_Emergency
00125 #define GWEN_LoggerLevelAlert GWEN_LoggerLevel_Alert
00126 #define GWEN_LoggerLevelCritical GWEN_LoggerLevel_Critical
00127 #define GWEN_LoggerLevelError GWEN_LoggerLevel_Error
00128 #define GWEN_LoggerLevelWarning GWEN_LoggerLevel_Warning
00129 #define GWEN_LoggerLevelNotice GWEN_LoggerLevel_Notice
00130 #define GWEN_LoggerLevelInfo GWEN_LoggerLevel_Info
00131 #define GWEN_LoggerLevelDebug GWEN_LoggerLevel_Debug
00132 #define GWEN_LoggerLevelVerbous GWEN_LoggerLevel_Verbous
00133 #define GWEN_LoggerLevelUnknown GWEN_LoggerLevel_Unknown
00134 
00135 #endif
00136 
00137 
00138 #endif
00139 
00140 

Generated on Wed Jun 21 00:59:52 2006 for gwenhywfar by  doxygen 1.4.6