#include <sys/types.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_t * | config_errce |
#define CONFIG_KEY_LEN 30 |
#define CONFIG_OPT_MANDATORY 0x0001 |
Referenced by config_parse_file(), get_plugin_infos(), and main().
#define CONFIG_OPT_MULTI 0x0002 |
Referenced by config_parse_file().
#define CONFIG_OPT_NONE 0x0000 |
#define CONFIG_TYPE_CALLBACK 0x0003 |
Referenced by config_parse_file(), get_plugin_infos(), and main().
#define CONFIG_TYPE_INT 0x0001 |
Referenced by config_parse_file(), and get_plugin_infos().
#define CONFIG_TYPE_STRING 0x0002 |
Referenced by config_parse_file(), get_plugin_infos(), and main().
#define CONFIG_VAL_STRING_LEN 225 |
Referenced by config_parse_file().
#define LINE_LEN 255 |
Referenced by config_parse_file().
typedef struct config_entry config_entry_t |
int config_parse_file | ( | const char * | section, |
config_entry_t * | keys | ||
) |
References CONFIG_OPT_MANDATORY, CONFIG_OPT_MULTI, CONFIG_TYPE_CALLBACK, CONFIG_TYPE_INT, CONFIG_TYPE_STRING, CONFIG_VAL_STRING_LEN, DEBUGC, ERRMAND, ERRMULT, ERROPEN, ERRSECTION, config_entry::hit, config_entry::key, line, LINE_LEN, config_entry::next, config_entry::options, config_entry::parser, config_entry::string, config_entry::type, config_entry::u, and config_entry::value.
Referenced by main(), and ulogd_db_configure().
int config_register_file | ( | const char * | file | ) |
config_entry_t* config_errce |