config-parser: Export weston_config_next_section
This symbol wasn’t exported from the weston binary, most likely due to
an oversight in 6e2c12496bbef3cc913cfe9d5f0aeb4d8b23b368, and because
internal modules can link against libshared.la directly it hasn’t been
found ever since.
This commit makes it possible for external modules to iterate over the
configuration file.
Signed-off-by: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Acked-by: Bryce Harrington <bryce@osg.samsung.com>
diff --git a/shared/config-parser.c b/shared/config-parser.c
index e2b5fa2..2a595b1 100644
--- a/shared/config-parser.c
+++ b/shared/config-parser.c
@@ -490,6 +490,7 @@
return config == NULL ? NULL : config->path;
}
+WL_EXPORT
int
weston_config_next_section(struct weston_config *config,
struct weston_config_section **section,