weston-ivi-shell: make 'extern' the definition of ivi_layout_interface in H file 05/26105/2
authorJanos Kovacs <jankovac503@gmail.com>
Wed, 13 Aug 2014 17:24:08 +0000 (20:24 +0300)
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
Mon, 25 Aug 2014 07:45:18 +0000 (16:45 +0900)
        the lack of 'extern' keyword at the definition of
        ivi_layout_interface in the H file resulted a local,
        empty duplicate of the struct whenever the H file was
        included. This duplicate shadowed the original function
        table and since it was all empty it resulted crashes whenever
        someone tried to use it.

        Modules that access the same table via dlopen/dlsym functioned
        properly however.

Change-Id: Ic7b2891dd0bfa31bbab5331b361ba5d31088332e
Signed-off-by: Janos Kovacs <jankovac503@gmail.com>
weston-ivi-shell/src/ivi-layout.h

index 8cca33c..94b58be 100644 (file)
@@ -137,7 +137,7 @@ struct ivi_layout_interface {
                                enum ivi_layout_warning_flag flag);
 };
 
-WL_EXPORT struct ivi_layout_interface ivi_layout_interface;
+extern struct ivi_layout_interface ivi_layout_interface;
 
 #ifdef __cplusplus
 } /**/