netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
conffile.h File Reference
#include <sys/types.h>
Include dependency graph for conffile.h:

Data Structures

struct  config_entry
 

Macros

#define LINE_LEN   255
 
#define CONFIG_KEY_LEN   30
 
#define CONFIG_VAL_STRING_LEN   225
 
#define CONFIG_TYPE_INT   0x0001
 
#define CONFIG_TYPE_STRING   0x0002
 
#define CONFIG_TYPE_CALLBACK   0x0003
 
#define CONFIG_OPT_NONE   0x0000
 
#define CONFIG_OPT_MANDATORY   0x0001
 
#define CONFIG_OPT_MULTI   0x0002
 

Typedefs

typedef struct config_entry config_entry_t
 

Enumerations

enum  {
  ERRNONE = 0,
  ERROPEN,
  ERROOM,
  ERRMULT,
  ERRMAND,
  ERRUNKN,
  ERRSECTION
}
 

Functions

int config_register_file (const char *file)
 
int config_parse_file (const char *section, config_entry_t *keys)
 

Variables

config_entry_tconfig_errce
 

Macro Definition Documentation

#define CONFIG_KEY_LEN   30
#define CONFIG_OPT_MANDATORY   0x0001
#define CONFIG_OPT_MULTI   0x0002

Referenced by config_parse_file().

#define CONFIG_OPT_NONE   0x0000
#define CONFIG_TYPE_CALLBACK   0x0003
#define CONFIG_TYPE_INT   0x0001
#define CONFIG_TYPE_STRING   0x0002
#define CONFIG_VAL_STRING_LEN   225

Referenced by config_parse_file().

#define LINE_LEN   255

Referenced by config_parse_file().

Typedef Documentation

Enumeration Type Documentation

anonymous enum
Enumerator
ERRNONE 
ERROPEN 
ERROOM 
ERRMULT 
ERRMAND 
ERRUNKN 
ERRSECTION 

Function Documentation

int config_register_file ( const char *  file)

Variable Documentation

config_entry_t* config_errce