Fixed errors when dynamic so file was created. 67/73267/2 accepted/tizen/common/20160609.145609 accepted/tizen/ivi/20160609.090512 accepted/tizen/mobile/20160609.090424 accepted/tizen/tv/20160609.090515 accepted/tizen/wearable/20160609.090451 submit/tizen/20160608.065020
authorJinWang An <jinwang.an@samsung.com>
Tue, 7 Jun 2016 10:12:04 +0000 (19:12 +0900)
committerJinWang An <jinwang.an@samsung.com>
Wed, 8 Jun 2016 05:47:48 +0000 (14:47 +0900)
 - Fixed canNOT found the __is_available_font func
 - Fixed wrong function name about get font size

Change-Id: Ieba97dd135a365fcaeaa11dfa4938bb17a4ad22d
Signed-off-by: JinWang An <jinwang.an@samsung.com>
src/system_setting_platform.c
system-settings-util/CMakeLists.txt
system-settings-util/src/system_settings_util.c

index 19551b8..87d7710 100644 (file)
@@ -339,9 +339,9 @@ int dl_is_available_font(char *str)
                return false;
        }
 
-       check_available_font = dlsym(handle, "_is_available_font");
+       check_available_font = dlsym(handle, "__is_available_font");
        if ((error = dlerror()) != NULL) {
-               SETTING_TRACE("ERROR!! canNOT find font_config_set function at libsystem-settings-util.so.0.1.0");
+               SETTING_TRACE("ERROR!! canNOT find __is_available_font function at libsystem-settings-util.so.0.1.0");
                if (handle)
                        dlclose(handle);
                return false;
@@ -366,7 +366,7 @@ void dl_font_size_set()
 
        set_font_size = dlsym(handle, "__font_size_set");
        if ((error = dlerror()) != NULL) {
-               SETTING_TRACE("ERROR!! canNOT find font_config_set function at libsystem-settings-util.so.0.1.0");
+               SETTING_TRACE("ERROR!! canNOT find __font_size_set function at libsystem-settings-util.so.0.1.0");
                if (handle)
                        dlclose(handle);
                return;
@@ -391,7 +391,7 @@ void dl_font_config_set_notification()
 
        set_font_nodification = dlsym(handle, "font_config_set_notification");
        if ((error = dlerror()) != NULL) {
-               SETTING_TRACE("ERROR!! canNOT find font_config_set function at libsystem-settings-util.so.0.1.0");
+               SETTING_TRACE("ERROR!! canNOT find font_config_set_notification function at libsystem-settings-util.so.0.1.0");
                if (handle)
                        dlclose(handle);
                return;
index a1a238f..c0a69fa 100755 (executable)
@@ -14,8 +14,7 @@ FOREACH(flag ${system_settings_util_CFLAGS})
        SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
 ENDFOREACH(flag)
 
-#SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Werror-implicit-function-declaration")
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Werror-implicit-function-declaration")
 SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
 
 IF("${ARCH}" STREQUAL "arm")
index 27f03f4..ed31007 100644 (file)
@@ -490,7 +490,7 @@ int __font_size_get()
        int font_size = -1;
 
        int vconf_value = -1;
-       if (system_setting_vconf_get_value_int(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE, &vconf_value)) {
+       if (vconf_get_int(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE, &vconf_value)) {
                return -1;
        }