From 8f7b1623846d644a144d68168ec3529ccc83df51 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Tue, 16 Jun 2020 21:11:05 +0200 Subject: Convert cfgdir to use debugging --- config.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index 7a92c1c..2ea440a 100644 --- a/config.h +++ b/config.h @@ -17,14 +17,15 @@ struct cfg_key_value_map { union cfg_value { const char *str; uint16_t uint16; - struct list_head addr_list; /* FIXME: addrs */ + struct list_head addrs; }; -bool config_parse_line(struct cfg *cfg, char **buf, +bool config_parse_line(struct cfg *cfg, const char *filename, char **buf, struct cfg_key_value_map *kvmap, int *rkey, const char **rkeyname, union cfg_value *rvalue); -bool config_parse_header(struct cfg *cfg, const char *title, char **buf); +bool config_parse_header(struct cfg *cfg, const char *filename, + const char *title, char **buf); #endif -- cgit v1.2.3