From 5307b95b93be495e40e4770fa6194db6ee27533a Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 24 Apr 2020 12:28:06 +0200 Subject: Cleanup: remove flag mechanism from config parser entirely Signed-off-by: David Oberhollenzer --- lib/include/libcfg.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/include') diff --git a/lib/include/libcfg.h b/lib/include/libcfg.h index 01a014c..1d5b2a7 100644 --- a/lib/include/libcfg.h +++ b/lib/include/libcfg.h @@ -27,7 +27,7 @@ typedef struct { */ unsigned int allow_block : 1; - int (*handle)(void *obj, char *arg, rdline_t *rd, int flags); + int (*handle)(void *obj, char *arg, rdline_t *rd); } cfg_param_t; /* @@ -92,11 +92,10 @@ int pack_argv(char *str); /* Parse a configuration file containing ' [arguments...]' lines. - The cfgobj and flags are passed to the callback in the params array. + The cfgobj is passed to the callback in the params array. Returns zero on success. */ -int rdcfg(void *cfgobj, rdline_t *rd, const cfg_param_t *params, size_t count, - int flags); +int rdcfg(void *cfgobj, rdline_t *rd, const cfg_param_t *params, size_t count); #endif /* LIBCONFIG_H */ -- cgit v1.2.3