From a6fbeb96e8894f6d2c953196c99a59644798ac04 Mon Sep 17 00:00:00 2001 From: laforge Date: Sun, 28 Sep 2003 15:19:25 +0000 Subject: new configuration file syntax (Magnus Boden) --- include/ulogd/conffile.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'include') 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 * - * $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 */ -- cgit v1.2.3