gwenhywfarapi.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile$
00003                              -------------------
00004     cvs         : $Id: gwenhywfarapi.h 1161 2007-02-16 12:30:24Z christian $
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 #if GWENHYWFAR_SYS_IS_WINDOWS
00068 # define GWENHYWFAR_CB __stdcall
00069 #else
00070 # define GWENHYWFAR_CB
00071 #endif
00072 
00073 #if GWENHYWFAR_SYS_IS_WINDOWS
00074 # define GWEN_DIR_SEPARATOR           '\\'
00075 # define GWEN_DIR_SEPARATOR_S         "\\"
00076 # define GWEN_SEARCHPATH_SEPARATOR    ';'
00077 # define GWEN_SEARCHPATH_SEPARATOR_S  ";"
00078 #else
00079 
00081 # define GWEN_DIR_SEPARATOR           '/'
00082 
00084 # define GWEN_DIR_SEPARATOR_S         "/"
00085 
00087 # define GWEN_SEARCHPATH_SEPARATOR    ':'
00088 
00090 # define GWEN_SEARCHPATH_SEPARATOR_S  ":"
00091 #endif
00092 
00093 #ifdef GCC_WITH_VISIBILITY_ATTRIBUTE
00094 # define GWENHYWFAR_EXPORT __attribute__((visibility("default")))
00095 # define GWENHYWFAR_NOEXPORT __attribute__((visibility("hidden")))
00096 #else
00097 # define GWENHYWFAR_EXPORT
00098 # define GWENHYWFAR_NOEXPORT
00099 #endif
00100 
00101 
00102 
00103 /* Convenience macros to test the versions of glibc and gcc. Taken
00104    from <features.h> which does not contain this on MinGW systems.  */
00105 #ifndef __GNUC_PREREQ
00106 # if defined __GNUC__ && defined __GNUC_MINOR__
00107 #  define __GNUC_PREREQ(maj, min) \
00108         ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
00109 # else
00110 #  define __GNUC_PREREQ(maj, min) 0
00111 # endif
00112 #endif /* __GNUC_PREREQ */
00113 
00114 
00115 /* Taken from <sys/cdefs.h> which does not contain this on MinGW
00116    systems.  */
00117 #ifndef __STRING
00118 # define __STRING(x)     #x
00119 #endif /* __STRING */
00120 
00121 
00122 /* This is needed for PalmOS, because it define some functions needed */
00123 #include <string.h>
00124 #include <gwenhywfar/system.h>
00125 
00126 
00127 #if __GNUC_PREREQ(3, 0)
00128 /* Only available in gcc >= 3.0.x */
00129 # define DEPRECATED __attribute__((deprecated))
00130 #else
00131 # define DEPRECATED
00132 #endif /* __GNUC__ */
00133 
00134 
00135 #ifndef GWEN_NO_COMPAT
00136 
00137 #define GWEN_ArgsTypeChar GWEN_ArgsType_Char
00138 #define GWEN_ArgsTypeInt GWEN_ArgsType_Int
00139 
00140 #define GWEN_ArgsOutTypeTXT GWEN_ArgsOutType_Txt
00141 #define GWEN_ArgsOutTypeHTML GWEN_ArgsOutType_Html
00142 
00143 #define GWEN_StringList2_IntertModeAlwaysAdd GWEN_StringList2_IntertMode_AlwaysAdd
00144 #define GWEN_StringList2_IntertModeNoDouble GWEN_StringList2_IntertMode_NoDouble
00145 #define GWEN_StringList2_IntertModeReuse GWEN_StringList2_IntertMode_Reuse
00146 
00147 #define GWEN_LoggerTypeConsole GWEN_LoggerType_Console
00148 #define GWEN_LoggerTypeFile GWEN_LoggerType_File
00149 #define GWEN_LoggerTypeSyslog GWEN_LoggerType_Syslog
00150 #define GWEN_LoggerTypeFunction GWEN_LoggerType_Function
00151 #define GWEN_LoggerTypeUnknown GWEN_LoggerType_Unknown
00152 
00153 #define GWEN_LoggerFacilityAuth GWEN_LoggerFacility_Auth
00154 #define GWEN_LoggerFacilityDaemon GWEN_LoggerFacility_Daemon
00155 #define GWEN_LoggerFacilityMail GWEN_LoggerFacility_Mail
00156 #define GWEN_LoggerFacilityNews GWEN_LoggerFacility_News
00157 #define GWEN_LoggerFacilityUser GWEN_LoggerFacility_User
00158 #define GWEN_LoggerFacilityUnknown GWEN_LoggerFacility_Unknown
00159 
00160 #define GWEN_LoggerLevelEmergency GWEN_LoggerLevel_Emergency
00161 #define GWEN_LoggerLevelAlert GWEN_LoggerLevel_Alert
00162 #define GWEN_LoggerLevelCritical GWEN_LoggerLevel_Critical
00163 #define GWEN_LoggerLevelError GWEN_LoggerLevel_Error
00164 #define GWEN_LoggerLevelWarning GWEN_LoggerLevel_Warning
00165 #define GWEN_LoggerLevelNotice GWEN_LoggerLevel_Notice
00166 #define GWEN_LoggerLevelInfo GWEN_LoggerLevel_Info
00167 #define GWEN_LoggerLevelDebug GWEN_LoggerLevel_Debug
00168 #define GWEN_LoggerLevelVerbous GWEN_LoggerLevel_Verbous
00169 #define GWEN_LoggerLevelUnknown GWEN_LoggerLevel_Unknown
00170 
00171 #endif
00172 
00173 
00174 #endif
00175 
00176 

Generated on Tue May 1 12:56:30 2007 for gwenhywfar by  doxygen 1.5.1