diff options
author | David Oberhollenzer <goliath@infraroot.at> | 2020-04-24 12:28:06 +0200 |
---|---|---|
committer | David Oberhollenzer <goliath@infraroot.at> | 2020-04-24 12:28:06 +0200 |
commit | 5307b95b93be495e40e4770fa6194db6ee27533a (patch) | |
tree | a06532a45a74fa8a72c8f5f6fa5c49b043403df7 /lib/include | |
parent | 70ea16b0b4423f02e4f0c265320c336341363793 (diff) |
Cleanup: remove flag mechanism from config parser entirely
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'lib/include')
-rw-r--r-- | lib/include/libcfg.h | 7 |
1 files changed, 3 insertions, 4 deletions
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 '<keyword> [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 */ |