Added SYSTEM_SETTINGS_KEY_ACCESSIBILITY_TTS
[platform/core/api/system-settings.git] / src / system_setting_platform.c
index 3b1856b..3f77713 100644 (file)
@@ -2342,3 +2342,29 @@ int system_setting_unset_changed_callback_uds_pkg_list(system_settings_key_e key
 }
 /*  LCOV_EXCL_STOP */
 
+/* SYSTEM_SETTINGS_KEY_ACCESSIBILITY_TTS */
+int system_setting_get_accessibility_tts(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       SETTING_TRACE_BEGIN;
+       bool vconf_value;
+
+       int ret = system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_ACCESSIBILITY_TTS, &vconf_value);
+       if (ret != SYSTEM_SETTINGS_ERROR_NONE) {
+               return ret;
+       }
+       *value = (void *)vconf_value;
+       return ret;
+}
+
+int system_setting_set_changed_callback_accessibility_tts(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
+{
+       SETTING_TRACE_BEGIN;
+       return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_TTS, SYSTEM_SETTINGS_KEY_ACCESSIBILITY_TTS, 2, user_data);
+}
+
+int system_setting_unset_changed_callback_accessibility_tts(system_settings_key_e key)
+{
+       SETTING_TRACE_BEGIN;
+       return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_TTS, 2);
+}
+