summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <emmanuel.peyrot@collabora.com>2017-02-21 11:58:20 +0000
committerBryce Harrington <bryce@osg.samsung.com>2017-02-21 12:55:15 -0800
commita1d214bb39912efb5c11442d1d93cb61efb2a2b0 (patch)
treea287d93bfb5ed8acfbc044c218ae0995b263a6d1
parent4b341a8b33495a457c37185e3f6fe19734ef246b (diff)
downloadweston-a1d214bb39912efb5c11442d1d93cb61efb2a2b0.tar.gz
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>
-rw-r--r--shared/config-parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared/config-parser.c b/shared/config-parser.c
index e2b5fa25..2a595b1f 100644
--- a/shared/config-parser.c
+++ b/shared/config-parser.c
@@ -490,6 +490,7 @@ weston_config_get_full_path(struct weston_config *config)
return config == NULL ? NULL : config->path;
}
+WL_EXPORT
int
weston_config_next_section(struct weston_config *config,
struct weston_config_section **section,