- Merged from tizen branch.
.Changed internal source code in multi callback APIs.
.Added multi-callback for system-settings keys
Change-Id: I78f64092881dfe51d6ae814b3dba62b18054245e
Signed-off-by: jinwang.an <jinwang.an@samsung.com>
*/
int system_settings_delete_value_string(system_settings_key_e key, const char *value);
+
+/**
+ * @brief Adds a change event callback for the given system settings key.
+ * @details The difference between this function and system_settings_set_changed_cb() is that system_settings_set_changed_cb() can set only one callback for a given key, while system_settings_add_changed_cb() can set multiple callbacks for a given key.
+ * @since_tizen 4.0
+ * @remarks The @a key cannot be #SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE. When the feature related to the @a key is not supported on the device, #SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED will be returned.
+ * @param[in] key The key name of the system settings
+ * @param[in] callback The callback function to invoke
+ * @param[in] user_data The user data to be passed to the callback function
+ * @return 0 on success, otherwise a negative error value
+ * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED The related feature is not supported on the device
+ * @post system_settings_changed_cb() will be invoked.
+ *
+ * @see system_settings_remove_changed_cb()
+ * @see system_settings_changed_cb()
+ *
+*/
+int system_settings_add_changed_cb(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
+
+/**
+ * @brief Removes a change event callback function.
+ * @details The difference between this function and system_settings_unset_changed_cb() is that system_settings_unset_changed_cb() unsets the callback set with system_settings_set_changed_cb(), while system_settings_remove_changed_cb() removes callbacks added with system_settings_add_changed_cb()
+ * @since_tizen 4.0
+ * @remarks The @a key cannot be #SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE. When the feature related to the @a key is not supported on the device, #SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED will be returned.
+ * @param[in] key The key name of the system settings
+ * @param[in] callback The callback function to be removed
+ * @return 0 on success, otherwise a negative error value
+ * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED The related feature is not supported on the device
+ *
+ * @see system_settings_add_changed_cb()
+ */
+int system_settings_remove_changed_cb(system_settings_key_e key, system_settings_changed_cb callback);
/**
* @}
*/
--- /dev/null
+#ifndef __TIZEN_SYSTEM_SETTING_MULTI_CALLBACK_H__
+#define __TIZEN_SYSTEM_SETTING_MULTI_CALLBACK_H__
+#include <system_settings.h>
+#include <system-setting-config.h>
+#include <glib.h>
+
+typedef struct __st_multi_callback_node_
+{
+ system_settings_changed_cb callback;
+ void* user_data;
+}callback_node;
+
+typedef struct __st_multi_callback_list_
+{
+ GList * list;
+ int is_registered;
+}callback_list;
+
+int add_multi_callback(callback_list *handle, system_settings_changed_cb ptr, void* user_data);
+int delete_multi_callback(callback_list *handle, system_settings_changed_cb ptr);
+int invoke_callback_list(callback_list *handle, system_settings_key_e key);
+
+
+#endif /* __TIZEN_SYSTEM_SETTING_MULTI_CALLBACK_H__ */
#include <dlog.h>
#include <system_settings.h>
+#include <system_settings_multi_callback.h>
#ifdef LOG_TAG
#undef LOG_TAG
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-typedef int (*system_setting_get_value_cb)(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+typedef int (*system_setting_get_value_cb)(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-typedef int (*system_setting_set_value_cb)(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
-
-typedef int (*system_setting_add_value_cb)(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
-typedef int (*system_setting_del_value_cb)(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
-typedef int (*system_setting_list_value_cb)(system_settings_key_e key, system_setting_data_type_e data_type, system_settings_iter_cb callback, void *user_data);
+typedef int (*system_setting_set_value_cb)(system_settings_key_e key, void *value);
+typedef int (*system_setting_add_value_cb)(system_settings_key_e key, void *value);
+typedef int (*system_setting_del_value_cb)(system_settings_key_e key, void *value);
+typedef int (*system_setting_list_value_cb)(system_settings_key_e key, system_settings_iter_cb callback, void *user_data);
typedef int (*system_setting_feature_check_cb)(void *value);
system_setting_feature_check_cb feature_check_cb;
+ callback_list changed_cb_list;
+
void *user_data; /* user_data */
} system_setting_s;
/**
* @internal
+ * @brief Unset the system settings notification callback
+ * @since_tizen 4.0
+ * @param[in] key system_settings_key_e value to get vconf string
+ * @param[out] key_string string pointer to be assigned vconf string
+ * @return 0 on success, otherwise a negative error value
+ * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval #SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED Not support system-settings API
+ */
+int system_settings_vconf_get_key_string(system_settings_key_e key, char **key_string);
+
+
+/**
+ * @internal
+ * @brief Unset the system settings notification callback
+ * @since_tizen 4.0
+ * @param[in] vconf_key vconf key name used in the code
+ * @param[in] key system_settings_key_e value.
+ * @return 0 on success, otherwise a negative error value
+ * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ */
+int system_setting_vconf_set_changed_multi_cb(const char *vconf_key, system_settings_key_e key);
+
+/**
+ * @internal
+ * @brief Unset the system settings notification callback
+ * @since_tizen 4.0
+ * @param[in] vconf_key vconf key name used in the code
+ * @param[in] key system_settings_key_e value.
+ * @return 0 on success, otherwise a negative error value
+ * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ */
+int system_setting_vconf_unset_changed_multi_cb(const char *vconf_key, system_settings_key_e key);
+
+/**
+ * @internal
* @brief get current font size
* @since_tizen 2.3
* @param[in] key key name should be SYSTEM_SETTINGS_KEY_FONT_SIZE
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_font_size(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_font_size(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_font_size(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_font_size(system_settings_key_e key, void *value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_incoming_call_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_incoming_call_ringtone(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_incoming_call_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_incoming_call_ringtone(system_settings_key_e key, void *value);
/**
* @todo add comment here
*/
-int system_setting_add_incoming_call_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_add_incoming_call_ringtone(system_settings_key_e key, void *value);
/**
* @todo add comment here
*/
-int system_setting_del_incoming_call_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_del_incoming_call_ringtone(system_settings_key_e key, void *value);
/**
* @todo add comment here
*/
-int system_setting_list_incoming_call_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, system_settings_iter_cb callback, void *data);
+int system_setting_list_incoming_call_ringtone(system_settings_key_e key, system_settings_iter_cb callback, void *data);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_email_alert_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_email_alert_ringtone(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_email_alert_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_email_alert_ringtone(system_settings_key_e key, void *value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_wallpaper_home_screen(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_wallpaper_home_screen(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_wallpaper_home_screen(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_wallpaper_home_screen(system_settings_key_e key, void *value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_wallpaper_lock_screen(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_wallpaper_lock_screen(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_wallpaper_lock_screen(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_wallpaper_lock_screen(system_settings_key_e key, void *value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_default_font_type(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_default_font_type(system_settings_key_e key, void **value);
/**
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_font_type(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_font_type(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_font_type(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_font_type(system_settings_key_e key, void *value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_motion_activation(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_motion_activation(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_motion_activation(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_motion_activation(system_settings_key_e key, void *value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_usb_debugging_option(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_usb_debugging_option(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_usb_debugging_option(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_usb_debugging_option(system_settings_key_e key, void *value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_3g_data_network(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_3g_data_network(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_3g_data_network(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_3g_data_network(system_settings_key_e key, void *value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_tap_and_hold_delay(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_tap_and_hold_delay(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_tap_and_hold_delay(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_tap_and_hold_delay(system_settings_key_e key, void *value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_lockscreen_app(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_lockscreen_app(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_lockscreen_app(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_lockscreen_app(system_settings_key_e key, void *value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_locale_country(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_locale_country(system_settings_key_e key, void **value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_locale_country(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_locale_country(system_settings_key_e key, void *value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_locale_language(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_locale_language(system_settings_key_e key, void **value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_locale_language(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_locale_language(system_settings_key_e key, void *value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_locale_timeformat_24hour(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_locale_timeformat_24hour(system_settings_key_e key, void **value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_locale_timeformat_24hour(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_locale_timeformat_24hour(system_settings_key_e key, void *value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_locale_timezone(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_locale_timezone(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_locale_timezone(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_locale_timezone(system_settings_key_e key, void *value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_time_changed(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_time_changed(system_settings_key_e key, void **value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_sound_lock(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_sound_lock(system_settings_key_e key, void **value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_sound_silent_mode(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_sound_silent_mode(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_sound_silent_mode(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_sound_silent_mode(system_settings_key_e key, void *value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_sound_touch(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_sound_touch(system_settings_key_e key, void **value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_auto_rotation_mode(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_auto_rotation_mode(system_settings_key_e key, void **value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_auto_rotation_mode(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_auto_rotation_mode(system_settings_key_e key, void *value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_screen_backlight_time(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_screen_backlight_time(system_settings_key_e key, void **value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_screen_backlight_time(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_screen_backlight_time(system_settings_key_e key, void *value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_sound_notification(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_sound_notification(system_settings_key_e key, void **value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_sound_notification(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_sound_notification(system_settings_key_e key, void *value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_notification_repetition_period(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_notification_repetition_period(system_settings_key_e key, void **value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_notification_repetition_period(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_notification_repetition_period(system_settings_key_e key, void *value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_device_name(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_device_name(system_settings_key_e key, void **value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_network_flight_mode(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_network_flight_mode(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_network_wifi_notification(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_network_wifi_notification(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_lock_state(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_lock_state(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_lock_state(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_lock_state(system_settings_key_e key, void *value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_ads_id(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_ads_id(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_ads_id(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_ads_id(system_settings_key_e key, void *value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_uds_state(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_uds_state(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_accessibility_tts(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_accessibility_tts(system_settings_key_e key, void **value);
/**
* @internal
* @since_tizen 4.0
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_vibration(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_get_vibration(system_settings_key_e key, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_vibration(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_vibration(system_settings_key_e key, void *value);
/**
* @internal
static void dl_font_size_set();
static void dl_font_config_set_notification();
-
-#ifndef VCONFKEY_SETAPPL_UDSM
-#define VCONFKEY_SETAPPL_UDSM "db/setting/udsm"
-#endif
-
-#ifndef VCONFKEY_SETAPPL_UDSM_PKGID_LIST
-#define VCONFKEY_SETAPPL_UDSM_PKGID_LIST "db/setting/udsm/pkgid_list"
-#endif
-
-
/**
* VCONFKEY_SETAPPL_CALL_RINGTONE_PATH_STR has a path of the ringtone file which user choose
* @return the ringtone file path specified by user in normal case
* if it's not accessable, return the default ringtone path
*/
-int system_setting_get_incoming_call_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_incoming_call_ringtone(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
char *vconf_value;
}
-int system_setting_get_email_alert_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_email_alert_ringtone(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
char *vconf_value;
}
-int system_setting_get_wallpaper_home_screen(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_wallpaper_home_screen(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
char *vconf_value;
}
-int system_setting_get_wallpaper_lock_screen(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_wallpaper_lock_screen(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
char *vconf_value;
/* [int] vconf GET */
-int system_setting_get_font_size(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_font_size(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
int vconf_value;
}
-int system_setting_get_default_font_type(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_default_font_type(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
char *font_name = dl_get_default_font_info();
}
/* [int] vconf GET */
-int system_setting_get_font_type(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_font_type(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
char *font_name = NULL;
}
-int system_setting_get_motion_activation(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_motion_activation(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
bool vconf_value;
return SYSTEM_SETTINGS_ERROR_NONE;
}
-int system_setting_get_usb_debugging_option(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_usb_debugging_option(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
bool vconf_value;
return SYSTEM_SETTINGS_ERROR_NONE;
}
-int system_setting_get_3g_data_network(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_3g_data_network(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
bool vconf_value;
*
* @return SYSTEM_SETTINGS_ERROR_LOCKSCREEN_APP_PASSWORD_MODE raise exception if current lock type is 'password'
*/
-int system_setting_get_lockscreen_app(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_lockscreen_app(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
char *pkg_name = NULL;
}
#endif
-int system_setting_add_incoming_call_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_add_incoming_call_ringtone(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
char* pathval = (char*)value;
return ret;
}
-int system_setting_del_incoming_call_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_del_incoming_call_ringtone(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
char* pathval = (char*)value;
/*
* get the RINGTONE list
*/
-static void _get_default_ringtones(system_settings_key_e key, system_setting_data_type_e data_type, system_settings_iter_cb callback, void *data)
+static void _get_default_ringtones(system_settings_key_e key, system_settings_iter_cb callback, void *data)
{
SETTING_TRACE_BEGIN;
/*Get file list */
}
-static void _get_user_ringtones(system_settings_key_e key, system_setting_data_type_e data_type, system_settings_iter_cb callback, void *data)
+static void _get_user_ringtones(system_settings_key_e key, system_settings_iter_cb callback, void *data)
{
SETTING_TRACE_BEGIN;
}
}
-int system_setting_list_incoming_call_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, system_settings_iter_cb callback, void *data)
+int system_setting_list_incoming_call_ringtone(system_settings_key_e key, system_settings_iter_cb callback, void *data)
{
SETTING_TRACE_BEGIN;
- _get_default_ringtones(key, data_type, callback, data);
+ _get_default_ringtones(key, callback, data);
//-----------------------------------------------------------------------------------------------------------------
// 2. get the USER ringtone list
//-----------------------------------------------------------------------------------------------------------------
- _get_user_ringtones(key, data_type, callback, data);
+ _get_user_ringtones(key, callback, data);
return SYSTEM_SETTINGS_ERROR_NONE;
}
/* LCOV_EXCL_START */
-int system_setting_set_incoming_call_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_incoming_call_ringtone(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value;
/* LCOV_EXCL_START */
-int system_setting_set_email_alert_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_email_alert_ringtone(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value;
#define WALLPAPER_MAX_COUNT 10
#endif
/* LCOV_EXCL_START */
-int system_setting_set_wallpaper_home_screen(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_wallpaper_home_screen(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value;
/* LCOV_EXCL_STOP */
/* LCOV_EXCL_START */
-int system_setting_set_wallpaper_lock_screen(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_wallpaper_lock_screen(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value;
/* LCOV_EXCL_STOP */
/* LCOV_EXCL_START */
-int system_setting_set_font_size(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_font_size(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
int *vconf_value;
/* LCOV_EXCL_STOP */
/* LCOV_EXCL_START */
-int system_setting_set_font_type(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_font_type(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
char *font_name = NULL;
/* LCOV_EXCL_STOP */
/* LCOV_EXCL_START */
-int system_setting_set_motion_activation(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_motion_activation(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
bool *vconf_value;
/* LCOV_EXCL_STOP */
/* LCOV_EXCL_START */
-int system_setting_set_usb_debugging_option(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_usb_debugging_option(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
bool *vconf_value;
/* LCOV_EXCL_STOP */
/* LCOV_EXCL_START */
-int system_setting_set_3g_data_network(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_3g_data_network(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
bool *vconf_value;
*/
/* LCOV_EXCL_START */
-int system_setting_set_lockscreen_app(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_lockscreen_app(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value;
/*//////////////////////////////////////////////////////////////////////////////////////// */
/*--------------------------------------- */
-int system_setting_get_locale_country(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_locale_country(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
char *vconf_value = NULL;
}
/* LCOV_EXCL_START */
-int system_setting_set_locale_country(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_locale_country(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value = NULL;
/*--------------------------------------- */
-int system_setting_get_locale_language(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_locale_language(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
char *vconf_value = NULL;
}
/* LCOV_EXCL_START */
-int system_setting_set_locale_language(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_locale_language(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value = NULL;
/*--------------------------------------- */
/* LCOV_EXCL_START */
-int system_setting_get_locale_timeformat_24hour(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_locale_timeformat_24hour(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
int vconf_value;
}
/* LCOV_EXCL_STOP */
-int system_setting_set_locale_timeformat_24hour(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_locale_timeformat_24hour(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
bool *vconf_value;
return system_setting_vconf_unset_changed_cb(VCONFKEY_REGIONFORMAT_TIME1224, 3);
}
-int system_setting_get_locale_timezone(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_locale_timezone(system_settings_key_e key, void **value)
{
char tzpath[256];
ssize_t len = readlink(SETTING_TZONE_SYMLINK_PATH, tzpath, sizeof(tzpath)-1);
}
/* LCOV_EXCL_START */
-int system_setting_set_locale_timezone(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_locale_timezone(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
char *timezone_value = NULL;
/* LCOV_EXCL_START */
-int system_setting_get_time_changed(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_time_changed(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
time_t cur_tick;
/* SYSTEM_SETTINGS_KEY_SOUND_LOCK */
-int system_setting_get_sound_lock(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_sound_lock(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
bool vconf_value;
* a == false, b == true --> vibration mode
*/
/* LCOV_EXCL_START */
-int system_setting_get_sound_silent_mode(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_sound_silent_mode(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
bool sound_cond;
* a == false, b == false --> silent mode
* a == true, b == false --> sound mode
*/
-int system_setting_set_sound_silent_mode(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_sound_silent_mode(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
bool *vconf_value;
}
/* SYSTEM_SETTINGS_KEY_SOUND_TOUCH */
-int system_setting_get_sound_touch(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_sound_touch(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
bool vconf_value;
#if 0
/* SYSTEM_SETTINGS_KEY_SOUND_LOCK */
-int system_setting_get_sound_lock(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_sound_lock(system_settings_key_e key, void **value)
{
bool vconf_value;
}
#endif
-int system_setting_get_auto_rotation_mode(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_auto_rotation_mode(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
bool vconf_value;
}
/* LCOV_EXCL_START */
-int system_setting_set_auto_rotation_mode(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_auto_rotation_mode(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
bool *vconf_value;
return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL, 2);
}
-int system_setting_get_screen_backlight_time(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_screen_backlight_time(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
int vconf_value;
/* LCOV_EXCL_START */
-int system_setting_set_screen_backlight_time(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_screen_backlight_time(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
int *vconf_value;
return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL, 2);
}
-int system_setting_get_sound_notification(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_sound_notification(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
char *vconf_value = NULL;
}
/* LCOV_EXCL_START */
-int system_setting_set_sound_notification(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_sound_notification(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value = NULL;
return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR, 0);
}
-int system_setting_get_notification_repetition_period(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_notification_repetition_period(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
int ** val = (int**)value;
}
/* LCOV_EXCL_START */
-int system_setting_set_notification_repetition_period(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_notification_repetition_period(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
int *vconf_value;
return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_NOTI_MSG_ALERT_REP_TYPE_INT, 1);
}
-int system_setting_get_device_name(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_device_name(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
char *vconf_value = NULL;
}
/* LCOV_EXCL_START */
-int system_setting_set_device_name(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_device_name(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value = NULL;
}
/*---------------------------------------------- */
-int system_setting_get_network_flight_mode(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_network_flight_mode(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
bool vconf_value;
return system_setting_vconf_unset_changed_cb(VCONFKEY_TELEPHONY_FLIGHT_MODE, 3);
}
-int system_setting_get_network_wifi_notification(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_network_wifi_notification(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
int vconf_value;
}
/* LCOV_EXCL_START */
-int system_setting_get_lock_state(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_lock_state(system_settings_key_e key, void **value)
{
int vconf_value;
int ** val = (int**)value;
/* LCOV_EXCL_STOP */
/* LCOV_EXCL_START */
-int system_setting_set_lock_state(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_lock_state(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
int *vconf_value;
#define DEFAULT_ADS_ID "00000000-0000-0000-0000-000000000000"
-int system_setting_get_ads_id(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_ads_id(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
int optout_value = 0;
}
#endif
/* LCOV_EXCL_START */
-int system_setting_set_ads_id(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_ads_id(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value = NULL;
}
/* LCOV_EXCL_START */
-int system_setting_get_uds_state(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_uds_state(system_settings_key_e key, void **value)
{
int ** p_value = (int**)value;
int vconf_value;
/* 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)
+int system_setting_get_accessibility_tts(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
bool vconf_value;
}
/* SYSTEM_SETTINGS_KEY_VIBRATION */
-int system_setting_get_vibration(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+int system_setting_get_vibration(system_settings_key_e key, void **value)
{
SETTING_TRACE_BEGIN;
bool vconf_value;
}
/* LCOV_EXCL_START */
-int system_setting_set_vibration(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+int system_setting_set_vibration(system_settings_key_e key, void *value)
{
SETTING_TRACE_BEGIN;
bool *vconf_value;
SETTING_TRACE_BEGIN;
return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_VIBRATION_STATUS_BOOL, 2);
}
+
+#ifdef UNIT_TEST
+static void simple_test_case(void)
+{
+ /* a suitable test */
+ g_assert(g_bit_storage(1) == 1);
+
+ /* a test with verbose error message */
+ g_assert_cmpint(g_bit_storage(1), ==, 1);
+}
+
+static void simple_test_case02(void)
+{
+ /* a suitable test */
+ g_assert(g_bit_storage(1) == 1);
+
+ /* a test with verbose error message */
+ g_assert_cmpint(g_bit_storage(1), ==, 1);
+}
+void unittest_platform()
+{
+ /* hook up your test functions */
+ g_test_add_func("/Simple Test Case", simple_test_case);
+ g_test_add_func("/Simple Test Case02", simple_test_case02);
+ /* run tests from the suite */
+}
+#endif
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
-
#include <vconf.h>
#include <dlog.h>
system_setting_del_incoming_call_ringtone, /* DEL */
system_setting_list_incoming_call_ringtone, /* LIST */
system_setting_feature_check_incoming_call, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
NULL, /* DEL */
NULL, /* LIST */
system_setting_feature_check_home_screen, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
NULL, /* DEL */
NULL, /* LIST */
system_setting_feature_check_lock_screen, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
NULL, /* DEL */
NULL, /* LIST */
system_setting_feature_check_notification_email, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
system_setting_feature_check_lock_screen, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
system_setting_feature_check_incoming_call, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
system_setting_feature_check_wifi, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* del */
NULL, /* list */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* del */
NULL, /* list */
system_setting_feature_check_telephony, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
NULL, /* del */
NULL, /* list */
system_setting_feature_check_telephony, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* del */
NULL, /* list */
system_setting_feature_check_telephony, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
NULL, /* DEL */
NULL, /* LIST */
NULL, /* feature check */
+ { NULL, 0 }, /* changed callabck list */
NULL, /* user data */
},
{
- SYSTEM_SETTINGS_MAX, -1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
+ SYSTEM_SETTINGS_MAX, -1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, { NULL, 0 }, NULL
}
};
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
- return system_setting_getter(key, system_setting_item->data_type, value);
+ return system_setting_getter(key, value);
}
/* LCOV_EXCL_START */
return SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED;
}
- return system_setting_setter(key, system_setting_item->data_type, value);
+ return system_setting_setter(key, value);
}
/* LCOV_EXCL_STOP */
return SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED;
}
- return system_setting_adder(key, system_setting_item->data_type, value);
+ return system_setting_adder(key, value);
}
return SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED;
}
- return system_setting_deler(key, system_setting_item->data_type, value);
+ return system_setting_deler(key, value);
}
return SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED;
}
- return system_setting_lister(key, system_setting_item->data_type, system_setting_data_iterator, user_data);
+ return system_setting_lister(key, system_setting_data_iterator, user_data);
}
return system_setting_unset_changed_cb(key);
}
+int system_settings_add_changed_cb(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
+{
+ LOGE("Enter [%s]", __FUNCTION__);
+ char *vconf_string = NULL;
+ system_setting_h system_setting_item;
+
+ if (callback == NULL) {
+ return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+ }
+
+ if (key == SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE)
+ return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+
+ int ret = system_settings_get_item(key, &system_setting_item);
+ if (ret != 0) {
+ if (ret == SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER)
+ LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
+ return ret;
+ }
+
+ system_settings_vconf_get_key_string(key, &vconf_string);
+ LOGE("[%s] key = %d %s", __FUNCTION__, key, vconf_string ? vconf_string : "NULL");
+
+ /* Store the callback function from application side */
+ ret = add_multi_callback(&system_setting_item->changed_cb_list, callback, user_data);
+ if (ret != SYSTEM_SETTINGS_ERROR_NONE) {
+ LOGE("[%s] IO_ERROR(0x%08x) : failed to add muti-callback for the system settings", __FUNCTION__, ret);
+ return ret;
+ }
+
+ if (!system_setting_item->changed_cb_list.is_registered) {
+ int ret = system_setting_vconf_set_changed_multi_cb(vconf_string, key);
+ if (ret == SYSTEM_SETTINGS_ERROR_NONE)
+ system_setting_item->changed_cb_list.is_registered = 1;
+ LOGE("Leave [%s]", __FUNCTION__);
+ return ret;
+ }
+
+ LOGE("Leave [%s]", __FUNCTION__);
+ return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+int system_settings_remove_changed_cb(system_settings_key_e key, system_settings_changed_cb callback)
+{
+ LOGE("Enter [%s]", __FUNCTION__);
+ char *vconf_string = NULL;
+ system_setting_h system_setting_item;
+
+ if (callback == NULL)
+ return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+
+ if (key == SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE)
+ return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+
+ int ret = system_settings_get_item(key, &system_setting_item);
+ if (ret != 0) {
+ if (ret == SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER)
+ LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
+ return ret;
+ }
+
+ delete_multi_callback(&system_setting_item->changed_cb_list, callback);
+
+ if (system_setting_item->changed_cb_list.list == NULL) {
+ int ret = 0;
+ system_settings_vconf_get_key_string(key, &vconf_string);
+ if (vconf_string == NULL)
+ return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+ ret = system_setting_vconf_unset_changed_multi_cb(vconf_string, key);
+ if (ret == SYSTEM_SETTINGS_ERROR_NONE)
+ system_setting_item->changed_cb_list.is_registered = 0;
+ LOGE("Leave [%s]", __FUNCTION__);
+ return ret;
+ }
+
+ LOGE("Leave [%s]", __FUNCTION__);
+ return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
//////////////////////////////////////////////////////////////////////////////////////////////////
// list
//////////////////////////////////////////////////////////////////////////////////////////////////
return system_settings_del_value(key, SYSTEM_SETTING_DATA_TYPE_STRING, (void *)value);
}
-
//#define VCONFKEY_SETAPPL_CALL_RINGTONE_USER_LIST
+/* LCOV_EXCL_START */
static void ss_json_ringtone_save(JsonNode *root)
{
// write here
#endif
g_object_unref(generator);
}
+/* LCOV_EXCL_STOP */
JsonParser* ss_json_ringtone_open_file(char* path)
return ret;
}
+/* LCOV_EXCL_START */
void ss_json_ringtone_list(JsonNode *root)
{
int size = json_array_get_length(json_node_get_array(root));
SETTING_TRACE("(%s) --- (%s) \n", name, path);
}
}
+/* LCOV_EXCL_STOP */
--- /dev/null
+#include <stdlib.h>
+#include <system_settings_private.h>
+
+void clean_node(callback_node* node)
+{
+ if (!node)
+ return;
+
+ node->callback = NULL;
+ node->user_data = NULL;
+}
+
+
+callback_node* alloc_multi_callback_node()
+{
+ callback_node* node = NULL;
+ node = (callback_node*)malloc(sizeof(callback_node));
+
+ if (node == NULL) {
+ SETTING_TRACE("Not enough node....");
+ return NULL;
+ }
+
+ clean_node(node);
+
+ return node;
+}
+
+void free_multi_callback_node(callback_node* node)
+{
+ if (node)
+ free(node);
+ return;
+}
+
+GList* find_callback_node(callback_list *handle, system_settings_changed_cb ptr)
+{
+ if (!handle)
+ return NULL;
+
+ GList * itr = g_list_first(handle->list);
+ while (itr != NULL) {
+ callback_node* node = (callback_node*)itr->data;
+ if (node->callback == ptr)
+ return itr;
+ itr = g_list_next(itr);
+ }
+
+ return itr; /* itr == NULL NOT found! */
+}
+
+
+int delete_multi_callback(callback_list *handle, system_settings_changed_cb ptr)
+{
+ SETTING_TRACE_BEGIN;
+ if (!handle || !ptr)
+ return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+
+ GList* itr = find_callback_node(handle, ptr);
+ if (itr) {
+ handle->list = g_list_remove_link(handle->list, itr);
+ free_multi_callback_node((callback_node*)itr->data);
+ g_list_free(itr);
+ }
+
+ SETTING_TRACE_END;
+ return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+int add_multi_callback(callback_list *handle, system_settings_changed_cb ptr, void *user_data)
+{
+ SETTING_TRACE_BEGIN;
+ if (!handle || !ptr)
+ return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+
+ GList* itr = find_callback_node(handle, ptr);
+ if (itr != NULL)
+ return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+
+ callback_node* node = alloc_multi_callback_node();
+
+ if (node == NULL)
+ return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+
+ node->callback = ptr;
+ node->user_data = user_data;
+
+ /* append the node to list. free_multi_callback_node will free the node */
+ handle->list = g_list_append(handle->list, node);
+
+ SETTING_TRACE_END;
+ return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+int invoke_callback_list(callback_list *handle, system_settings_key_e key)
+{
+ SETTING_TRACE_BEGIN;
+ if (!handle)
+ return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+
+ GList * itr = g_list_first(handle->list);
+ while (itr != NULL) {
+ callback_node* node = (callback_node*)itr->data;
+ if (node->callback)
+ node->callback(key, node->user_data);
+ itr = g_list_next(itr);
+ }
+
+ SETTING_TRACE_END;
+ return SYSTEM_SETTINGS_ERROR_NONE;
+}
#include "system_settings_ringtones.h"
#include "system_settings_json.h"
+/* LCOV_EXCL_START */
/*remove ext name */
char *get_filename_from_fullname(const char *fullname)
{
return strdup((char*)tmp);
}
+/* LCOV_EXCL_STOP */
char *get_media_basename(const char *dir_path, const char *name)
{
#define LOG_TAG "TIZEN_N_SYSTEM_SETTINGS"
+static char* _system_settings_vconf_table[38] = {
+ VCONFKEY_SETAPPL_CALL_RINGTONE_PATH_STR,
+ VCONFKEY_BGSET,
+ VCONFKEY_IDLE_LOCK_BGSET,
+ VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE,
+ VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_NAME,
+ VCONFKEY_SETAPPL_MOTION_ACTIVATION,
+ VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR,
+ VCONFKEY_SETAPPL_USB_DEBUG_MODE_BOOL,
+ VCONFKEY_3G_ENABLE,
+ NULL,
+ VCONFKEY_SETAPPL_3RD_LOCK_PKG_NAME_STR,
+ NULL,
+ VCONFKEY_REGIONFORMAT,
+ VCONFKEY_LANGSET,
+ VCONFKEY_REGIONFORMAT_TIME1224,
+ VCONFKEY_SETAPPL_TIMEZONE_ID,
+ VCONFKEY_SYSTEM_TIME_CHANGED,
+ VCONFKEY_SETAPPL_SOUND_LOCK_BOOL,
+ VCONFKEY_SETAPPL_SOUND_STATUS_BOOL,
+ VCONFKEY_SETAPPL_TOUCH_SOUNDS_BOOL,
+ VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL,
+ VCONFKEY_SETAPPL_DEVICE_NAME_STR,
+ VCONFKEY_SETAPPL_MOTION_ACTIVATION,
+ VCONFKEY_WIFI_ENABLE_QS,
+ VCONFKEY_TELEPHONY_FLIGHT_MODE,
+ VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL,
+ VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR,
+ VCONFKEY_SETAPPL_NOTI_MSG_ALERT_REP_TYPE_INT,
+ VCONFKEY_IDLE_LOCK_STATE_READ_ONLY,
+ VCONFKEY_SETAPPL_AD_ID,
+ VCONFKEY_SETAPPL_UDSM,
+ VCONFKEY_SETAPPL_UDSM_PKGID_LIST,
+ VCONFKEY_SETAPPL_ACCESSIBILITY_TTS,
+ VCONFKEY_SETAPPL_VIBRATION_STATUS_BOOL,
+ "MAX"
+};
int system_setting_vconf_get_value_int(const char *vconf_key, int *value)
{
return SYSTEM_SETTINGS_ERROR_NONE;
}
+int system_settings_vconf_get_key_string(system_settings_key_e key, char **key_string)
+{
+ if (key == SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE) {
+ *key_string = NULL; /* Not Supported changed callback*/
+ return SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED;
+ }
+
+ *key_string = _system_settings_vconf_table[(int)key];
+
+ if (*key_string == NULL)
+ return SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED;
+
+ return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+static void system_setting_vconf_event_multi_cb(keynode_t *node, void *event_data)
+{
+ LOGE("Enter [%s]", __FUNCTION__);
+ system_settings_key_e pkey = (system_settings_key_e)event_data;
+
+ if (node != NULL) {
+ system_setting_h system_setting_item;
+
+ int ret = system_settings_get_item(pkey, &system_setting_item);
+ if (ret != 0) {
+ if (ret == SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER)
+ LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
+ }
+
+ invoke_callback_list(&system_setting_item->changed_cb_list, pkey);
+ }
+ LOGE("Leave [%s]", __FUNCTION__);
+}
+
+static void system_setting_vconf_event_multi_cb_slot_0(keynode_t *node, void *event_data)
+{
+ system_setting_vconf_event_multi_cb(node, event_data);
+}
+
+static void system_setting_vconf_event_multi_cb_slot_1(keynode_t *node, void *event_data)
+{
+ system_setting_vconf_event_multi_cb(node, event_data);
+}
+
+static void system_setting_vconf_event_multi_cb_slot_2(keynode_t *node, void *event_data)
+{
+ system_setting_vconf_event_multi_cb(node, event_data);
+}
+
+static void system_setting_vconf_event_multi_cb_slot_3(keynode_t *node, void *event_data)
+{
+ system_setting_vconf_event_multi_cb(node, event_data);
+}
+
+static system_setting_vconf_event_cb system_setting_vconf_get_event_multi_cb_slot(system_settings_key_e key)
+{
+ int cal = (int) key;
+ int slot = cal % 4;
+
+ switch (slot) {
+ case 0:
+ return system_setting_vconf_event_multi_cb_slot_0;
+
+ case 1:
+ return system_setting_vconf_event_multi_cb_slot_1;
+
+ case 2:
+ return system_setting_vconf_event_multi_cb_slot_2;
+
+ case 3:
+ return system_setting_vconf_event_multi_cb_slot_3;
+
+ default:
+ return NULL;
+ }
+}
+
+int system_setting_vconf_set_changed_multi_cb(const char *vconf_key, system_settings_key_e key)
+{
+ LOGE("Enter [%s]", __FUNCTION__);
+ system_setting_vconf_event_cb vconf_event_cb;
+
+ vconf_event_cb = system_setting_vconf_get_event_multi_cb_slot(key);
+
+ if (vconf_event_cb == NULL)
+ return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+
+ int ret = vconf_notify_key_changed(vconf_key, vconf_event_cb, (void *)key);
+ if (ret != 0) {
+ LOGE("[%s] INVALID_error , ret = %d, %s", __FUNCTION__, ret, "vconf_notify_key_changed error");
+ return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+ }
+
+ LOGE("Leave [%s]", __FUNCTION__);
+ return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+int system_setting_vconf_unset_changed_multi_cb(const char *vconf_key, system_settings_key_e key)
+{
+ LOGE("Enter [%s]", __FUNCTION__);
+ system_setting_vconf_event_cb vconf_event_cb;
+
+ vconf_event_cb = system_setting_vconf_get_event_multi_cb_slot(key);
+
+ if (vconf_event_cb == NULL)
+ return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+
+ int ret = vconf_ignore_key_changed(vconf_key, vconf_event_cb);
+ if (ret != 0) {
+ LOGE("[%s] INVALID_error , ret = %d, %s", __FUNCTION__, ret, "vconf_ignore_key_changed error");
+ return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+ }
+
+ LOGE("Leave [%s]", __FUNCTION__);
+ return SYSTEM_SETTINGS_ERROR_NONE;
+}