Main Page | Class List | File List | Class Members | File Members | Related Pages

libgift.h

Go to the documentation of this file.
00001 /* 00002 * $Id: libgift.h,v 1.10.2.14 2004/08/21 08:13:04 jasta Exp $ 00003 * 00004 * Copyright (C) 2001-2003 giFT project (gift.sourceforge.net) 00005 * 00006 * This program is free software; you can redistribute it and/or modify it 00007 * under the terms of the GNU General Public License as published by the 00008 * Free Software Foundation; either version 2, or (at your option) any 00009 * later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, but 00012 * WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * General Public License for more details. 00015 */ 00016 00017 #ifndef __LIBGIFT_H 00018 #define __LIBGIFT_H 00019 00020 /*****************************************************************************/ 00021 00028 /*****************************************************************************/ 00029 00030 /* this should be moved to something controlled by configure */ 00031 #ifndef LIBGIFT_DEBUG 00032 # define LIBGIFT_DEBUG 1 00033 #endif /* LIBGIFT_DEBUG */ 00034 00035 /* conditionally setup the environment based on configured features */ 00036 #include "giftconfig.h" 00037 00038 /* we don't need LIBGIFT_EXPORT for anything but building the DLL on win32 */ 00039 #ifndef LIBGIFT_EXPORT 00040 # define LIBGIFT_EXPORT 00041 #endif 00042 00043 /*****************************************************************************/ 00044 00045 #include <stdio.h> 00046 #include <stdlib.h> 00047 #include <stdarg.h> 00048 00049 #include <string.h> 00050 00051 #include <assert.h> 00052 00053 #include <sys/types.h> 00054 00055 #ifdef HAVE_STDINT_H 00056 # include <stdint.h> 00057 #endif 00058 00059 #ifdef HAVE_STDBOOL_H 00060 # include <stdbool.h> 00061 #endif 00062 00063 #ifdef HAVE_INTTYPES_H 00064 # include <inttypes.h> 00065 #endif 00066 00067 #ifdef HAVE_UNISTD_H 00068 # include <unistd.h> 00069 #endif 00070 00071 /*****************************************************************************/ 00072 00073 #ifndef MIN 00074 # define MIN(x,y) (((x)<(y))?(x):(y)) 00075 #endif 00076 00077 #ifndef MAX 00078 # define MAX(x,y) (((x)>(y))?(x):(y)) 00079 #endif 00080 00081 #ifndef CLAMP 00082 # define CLAMP(value,min,max) (((value)<(min))?(min):(((value)>(max))?(max):(value))) 00083 #endif 00084 00085 #ifndef INTCMP 00086 # define INTCMP(x,y) (((x)>(y))?1:(((x)<(y))?-1:0)) 00087 #endif 00088 00089 #ifndef BOOL_EXPR 00090 # define BOOL_EXPR(expr) ((expr)?(true):(false)) 00091 #endif /* BOOL_EXPR */ 00092 00093 /*****************************************************************************/ 00094 00095 #include "gi_time.h" 00096 #include "gi_event.h" 00097 00098 #include "gi_string.h" 00099 #include "gi_strobj.h" 00100 00101 #include "gi_fileutil.h" 00102 #include "gi_path.h" 00103 00104 #include "gi_memory.h" 00105 00106 #include "gi_list.h" 00107 00108 #include "gi_sockapi.h" 00109 #include "gi_tcp.h" 00110 00111 #include "gi_log.h" 00112 00113 /*****************************************************************************/ 00114 00115 #include "platform.h" 00116 00117 #include "gi_dataset.h" 00118 #include "array.h" 00119 00120 #include "conf.h" 00121 00122 /*****************************************************************************/ 00123 00124 EXTERN_C_BEGIN 00125 00126 /*****************************************************************************/ 00127 00141 LIBGIFT_EXPORT 00142 bool libgift_init (const char *prog, int logopt, const char *logfile); 00143 00148 LIBGIFT_EXPORT 00149 void libgift_finish (void); 00150 00151 /*****************************************************************************/ 00152 00153 EXTERN_C_END 00154 00155 /*****************************************************************************/ 00156 00157 #endif /* __LIBGIFT_H */

Generated on Sun Aug 22 07:56:40 2004 by doxygen 1.3.7