#include <sys/types.h>
Data Structures | |
struct | config_entry |
struct | config_keyset |
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 |
#define | CONFIG_FLAG_VAL_PROTECTED (1<<0) |
Enumerations | |
enum | { ERRNONE = 0, ERROPEN, ERROOM, ERRMULT, ERRMAND, ERRUNKN, ERRSECTION, ERRTOOLONG } |
Functions | |
int | config_register_file (const char *file) |
int | config_parse_file (const char *section, struct config_keyset *kset) |
void | config_stop () |
Variables | |
struct config_entry * | config_errce |
#define CONFIG_FLAG_VAL_PROTECTED (1<<0) |
Referenced by config_parse_file(), and main().
#define CONFIG_KEY_LEN 30 |
#define CONFIG_OPT_MANDATORY 0x0001 |
#define CONFIG_OPT_MULTI 0x0002 |
#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 |
#define LINE_LEN 255 |
int config_parse_file | ( | const char * | section, |
struct config_keyset * | kset | ||
) |
References config_keyset::ces, CONFIG_FLAG_VAL_PROTECTED, CONFIG_OPT_MANDATORY, CONFIG_OPT_MULTI, CONFIG_TYPE_CALLBACK, CONFIG_TYPE_INT, CONFIG_TYPE_STRING, CONFIG_VAL_STRING_LEN, ERRMAND, ERRMULT, ERROPEN, ERRSECTION, ERRTOOLONG, config_entry::flag, config_entry::hit, config_entry::key, line, LINE_LEN, NULL, config_keyset::num_ces, config_entry::options, config_entry::parser, pr_debug, config_entry::string, config_entry::type, config_entry::u, ULOGD_ERROR, ulogd_log, and config_entry::value.
int config_register_file | ( | const char * | file | ) |
References ERROOM, pr_debug, ULOGD_ERROR, and ulogd_log.
Referenced by main().
void config_stop | ( | ) |
struct config_entry* config_errce |