gwenhywfarapi.h

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

Generated on Thu Nov 9 22:06:48 2006 for gwenhywfar by  doxygen 1.5.1