diff options
author | laforge <laforge> | 2003-09-28 15:19:25 +0000 |
---|---|---|
committer | laforge <laforge> | 2003-09-28 15:19:25 +0000 |
commit | a6fbeb96e8894f6d2c953196c99a59644798ac04 (patch) | |
tree | a148482775e0c3f69ffe0791d372d6abbdbdbfe6 /include | |
parent | f425910af1a22cf8666852a7c31a93a368c2b891 (diff) |
new configuration file syntax (Magnus Boden)
Diffstat (limited to 'include')
-rw-r--r-- | include/ulogd/conffile.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/ulogd/conffile.h b/include/ulogd/conffile.h index b007004..4a390d2 100644 --- a/include/ulogd/conffile.h +++ b/include/ulogd/conffile.h @@ -2,7 +2,7 @@ * * (C) 2000 by Harald Welte <laforge@gnumonks.org> * - * $Id: conffile.h,v 1.1 2000/11/20 11:43:22 laforge Exp $ + * $Id: conffile.h,v 1.2 2001/05/26 23:19:28 laforge Exp $ * * This code is distributed under the terms of GNU GPL */ @@ -19,6 +19,7 @@ enum { ERRMULT, /* non-multiple option occured more than once */ ERRMAND, /* mandatory option not found */ ERRUNKN, /* unknown config key */ + ERRSECTION, /* section not found */ }; /* maximum line lenght of config file entries */ @@ -59,11 +60,7 @@ extern config_entry_t *config_errce; /* tell us the name of the config file */ int config_register_file(const char *file); -/* parse the config file , presume all config keys are registered - * if final==1 */ -int config_parse_file(int final); - -/* register a linked list of config entries */ -int config_register_key(config_entry_t *ce); +/* parse the config file */ +int config_parse_file(const char *section, config_entry_t *keys); #endif /* ifndef _CONFFILE_H */ |