00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
#ifndef __LIBGIFT_H
00018
#define __LIBGIFT_H
00019
00020
00021
00028
00029
00030
00031
#ifndef LIBGIFT_DEBUG
00032
# define LIBGIFT_DEBUG 1
00033
#endif
00034
00035
00036
#include "giftconfig.h"
00037
00038
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
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