config: support sections in config_ api

This commit wraps some functions from iniparser to support sections in
our config files.

The new functions become part of the config_* api and will help to
support the uart mux feature.

Change-Id: I7fa9aa1d60b67458943d5c53a1aeb90406c5fcf3
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/config.h b/config.h
index e8f6f8d..0a8a4cd 100644
--- a/config.h
+++ b/config.h
@@ -22,6 +22,8 @@
 
 struct config;
 
+const char *config_get_section_value(struct config *config, const char *secname,
+				     const char *name);
 const char *config_get_value(struct config *config, const char *name);
 struct config *config_init(const char *filename);
 const char *config_resolve_console_id(struct config *config,
@@ -32,3 +34,6 @@
 uint32_t parse_baud_to_int(speed_t speed);
 speed_t parse_int_to_baud(uint32_t baud);
 int config_parse_bytesize(const char *size_str, size_t *size);
+
+int config_count_sections(struct config *config);
+const char *config_get_section_name(struct config *config, int i);