weston: Add patch to export more config-parser API
[AGL/meta-agl.git] / meta-agl-profile-graphical / recipes-graphics / wayland / weston / 0001-config-parser-Export-get_full_path-and-destroy.patch
1 From 40ff644ac4da90c5cf5239c6ee6051d9bb2b099a Mon Sep 17 00:00:00 2001
2 From: Daniel Stone <daniels@collabora.com>
3 Date: Mon, 25 Nov 2019 10:30:11 +0000
4 Subject: [PATCH] config-parser: Export get_full_path and destroy
5
6 Make sure we export the get_full_path() accessor (declared in the
7 header, used by Weston itself) and the parser's destroy function.
8
9 Signed-off-by: Daniel Stone <daniels@collabora.com>
10 ---
11  shared/config-parser.c | 2 ++
12  1 file changed, 2 insertions(+)
13
14 diff --git a/shared/config-parser.c b/shared/config-parser.c
15 index 35f09f006..94eb24cc1 100644
16 --- a/shared/config-parser.c
17 +++ b/shared/config-parser.c
18 @@ -470,6 +470,7 @@ weston_config_parse(const char *name)
19         return config;
20  }
21  
22 +WL_EXPORT
23  const char *
24  weston_config_get_full_path(struct weston_config *config)
25  {
26 @@ -500,6 +501,7 @@ weston_config_next_section(struct weston_config *config,
27         return 1;
28  }
29  
30 +WL_EXPORT
31  void
32  weston_config_destroy(struct weston_config *config)
33  {
34 -- 
35 2.21.0
36