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

libgift.h File Reference

Centralized header for all things using libgiFT. More...

#include "giftconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <assert.h>
#include <sys/types.h>
#include <stdint.h>
#include <inttypes.h>
#include <unistd.h>
#include <time.h>
#include <sys/time.h>
#include "platform.h"
#include "memory.h"
#include "strobj.h"
#include "parse.h"
#include "dataset.h"
#include "list.h"
#include "list_lock.h"
#include "tree.h"
#include "array.h"
#include "event.h"
#include "network.h"
#include "tcpc.h"
#include "interface.h"
#include "conf.h"
#include "log.h"

Go to the source code of this file.

Defines

#define MIN(x, y)   (((x)<(y))?(x):(y))
#define MAX(x, y)   (((x)>(y))?(x):(y))
#define CLAMP(value, min, max)   (((value)<(min))?(min):(((value)>(max))?(max):(value)))
#define INTCMP(x, y)   (((x)>(y))?1:(((x)<(y))?-1:0))
#define BOOL_EXPR(expr)   ((expr)?(TRUE):(FALSE))

Functions

EXTERN_C_BEGIN LIBGIFT_EXPORT
int 
libgift_init (const char *prog, LogOptions opt, const char *logfile)
LIBGIFT_EXPORT int libgift_finish (void)


Detailed Description

Centralized header for all things using libgiFT.


Function Documentation

LIBGIFT_EXPORT int libgift_finish void   ) 
 

Uninitialize any applicable data. This is merely used for a graceful exit and not strictly required. At any rate, use it anyway :)

EXTERN_C_BEGIN LIBGIFT_EXPORT int libgift_init const char *  prog,
LogOptions  opt,
const char *  logfile
 

Initialize all libgiFT subsystems. This should be a safe operation no matter how much you decide to use libgiFT functionality.

Parameters:
prog Your programs identity, not argv[0]. For example, giFT would use "giFT".
opt Log options to use if the logging facility will be required. It is recommended that you supply GLOG_STDERR for direct output to stderr.
logfile If the GLOG_FILE flag was set, this is the file that will be written to. Otherwise, it has no effect and it is recommended that you supply NULL.


Generated on Sun Aug 22 08:07:11 2004 by doxygen 1.3.7