Main Page | Data Structures | File List | Data Fields | Globals

confloader.h File Reference

#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  logt
struct  option

Enumerations

enum  ltype {
  YESNO, INTOPT, FLOATOPT, STRINGOPT,
  COMMENTOPT, LOGOPT, FILEOPT, UNKNOWNOPT
}
enum  log_t {
  LOG__NOTDEF, LOG__NONE, LOG__SYSLOG, LOG__FILE,
  LOG__STDERR, LOG__STDOUT, ELOG = 10
}

Functions

int confparse (char *conffile, FILE *fderr)
option getconf (const char *name)

Variables

option conf []


Detailed Description

Definition in file confloader.h.


Enumeration Type Documentation

enum ltype
 

These are optiontypes to use in the conf array

Enumeration values:
YESNO  boolean option
INTOPT  integer
FLOATOPT  float
STRINGOPT  string
LOGOPT  log option. cf the log_t type
FILEOPT  filename

Definition at line 37 of file confloader.h.


Function Documentation

int confparse char *  conffile,
FILE *  fderr
 

Here is the main function: it takes as parameter the configuration file to load

Definition at line 470 of file confloader.c.

References option::mandatory, and option::name.

option getconf const char *  name  ) 
 

This function is used to search an option in the conf array by its name

Definition at line 505 of file confloader.c.

References option::name.


Generated on Wed Jan 5 12:01:39 2005 for Confloader by doxygen 1.3.6