From 4c347b8ee0236c2ce8f85f216f4386e70026178c Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Mon, 8 Oct 2018 16:04:44 +0200 Subject: [PATCH] config-parser: export functions to open a config file The in-tree clients can access the functions via libshared, but they are currently not available for external clients, such as custom shell helper applications similar to weston-desktop-shell or weston-ivi-shell-user-interface. The functions to read the content of the config are already exported. Signed-off-by: Michael Olbrich --- shared/config-parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shared/config-parser.c b/shared/config-parser.c index 7b1402d2..35f09f00 100644 --- a/shared/config-parser.c +++ b/shared/config-parser.c @@ -326,6 +326,7 @@ weston_config_section_get_bool(struct weston_config_section *section, return 0; } +WL_EXPORT const char * weston_config_get_name_from_env(void) { @@ -387,6 +388,7 @@ section_add_entry(struct weston_config_section *section, return entry; } +WL_EXPORT struct weston_config * weston_config_parse(const char *name) {