From d439c534189320d6ea64fa4d5cb568da628f162a Mon Sep 17 00:00:00 2001 From: Nam KwanWoo Date: Tue, 19 Mar 2013 11:11:57 +0900 Subject: [PATCH] remove key(RUNTIME_INFO_KEY_ROTATION_LOCK_ENABLED) Change-Id: I5efec29cb75844035b25eeb90dc87f8a31dbfc90 --- include/runtime_info.h | 1 - include/runtime_info_private.h | 26 +++++++--------- packaging/capi-system-runtime-info.spec | 2 +- src/runtime_info.c | 9 ------ src/runtime_info_system.c | 55 ++++++++++++++------------------- 5 files changed, 37 insertions(+), 56 deletions(-) mode change 100755 => 100644 include/runtime_info.h mode change 100755 => 100644 include/runtime_info_private.h mode change 100755 => 100644 packaging/capi-system-runtime-info.spec diff --git a/include/runtime_info.h b/include/runtime_info.h old mode 100755 new mode 100644 index 01edb0b..ba730de --- a/include/runtime_info.h +++ b/include/runtime_info.h @@ -57,7 +57,6 @@ typedef enum { RUNTIME_INFO_KEY_DATA_ROAMING_ENABLED, /**b = false; - - return RUNTIME_INFO_ERROR_INVALID_PARAMETER; -} - int runtime_info_auto_rotation_enabled_get_value(runtime_info_value_h value) { bool vconf_value; @@ -159,12 +152,12 @@ int runtime_info_auto_rotation_enabled_get_value(runtime_info_value_h value) return RUNTIME_INFO_ERROR_NONE; } -int runtime_info_auto_rotation_enabled_set_event_cb() +int runtime_info_auto_rotation_enabled_set_event_cb(void) { return runtime_info_vconf_set_event_cb(VCONF_ROTATION_LOCK_ENABLED, RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED, 0); } -void runtime_info_auto_rotation_enabled_unset_event_cb() +void runtime_info_auto_rotation_enabled_unset_event_cb(void) { runtime_info_vconf_unset_event_cb(VCONF_ROTATION_LOCK_ENABLED, 0); } @@ -181,12 +174,12 @@ int runtime_info_battery_charging_get_value(runtime_info_value_h value) return RUNTIME_INFO_ERROR_NONE; } -int runtime_info_battery_charging_set_event_cb() +int runtime_info_battery_charging_set_event_cb(void) { return runtime_info_vconf_set_event_cb(VCONF_BATTERY_CHARGING, RUNTIME_INFO_KEY_BATTERY_IS_CHARGING, 0); } -void runtime_info_battery_charging_unset_event_cb() +void runtime_info_battery_charging_unset_event_cb(void) { runtime_info_vconf_unset_event_cb(VCONF_BATTERY_CHARGING, 0); } @@ -212,12 +205,12 @@ int runtime_info_tvout_connected_get_value(runtime_info_value_h value) return RUNTIME_INFO_ERROR_NONE; } -int runtime_info_tvout_connected_set_event_cb() +int runtime_info_tvout_connected_set_event_cb(void) { return runtime_info_vconf_set_event_cb(VCONF_TVOUT_CONNECTED, RUNTIME_INFO_KEY_TV_OUT_CONNECTED, 1); } -void runtime_info_tvout_connected_unset_event_cb() +void runtime_info_tvout_connected_unset_event_cb(void) { runtime_info_vconf_unset_event_cb(VCONF_TVOUT_CONNECTED, 1); } @@ -247,12 +240,12 @@ int runtime_info_audio_jack_status_get_value(runtime_info_value_h value) return RUNTIME_INFO_ERROR_NONE; } -int runtime_info_audio_jack_status_set_event_cb() +int runtime_info_audio_jack_status_set_event_cb(void) { return runtime_info_vconf_set_event_cb(VCONF_AUDIO_JACK_STATUS, RUNTIME_INFO_KEY_AUDIO_JACK_STATUS, 2); } -void runtime_info_audio_jack_status_unset_event_cb() +void runtime_info_audio_jack_status_unset_event_cb(void) { runtime_info_vconf_unset_event_cb(VCONF_AUDIO_JACK_STATUS, 2); } @@ -285,12 +278,12 @@ int runtime_info_sliding_keyboard_opened_get_value(runtime_info_value_h value) return RUNTIME_INFO_ERROR_NONE; } -int runtime_info_sliding_keyboard_opened_set_event_cb() +int runtime_info_sliding_keyboard_opened_set_event_cb(void) { return runtime_info_vconf_set_event_cb(VCONF_SLIDING_KEYBOARD_STATUS, RUNTIME_INFO_KEY_SLIDING_KEYBOARD_OPENED, 0); } -void runtime_info_sliding_keyboard_opened_unset_event_cb() +void runtime_info_sliding_keyboard_opened_unset_event_cb(void) { runtime_info_vconf_unset_event_cb(VCONF_SLIDING_KEYBOARD_STATUS, 0); } @@ -323,12 +316,12 @@ int runtime_info_usb_connected_get_value(runtime_info_value_h value) return RUNTIME_INFO_ERROR_NONE; } -int runtime_info_usb_connected_set_event_cb() +int runtime_info_usb_connected_set_event_cb(void) { return runtime_info_vconf_set_event_cb(VCONF_USB_CONNECTED, RUNTIME_INFO_KEY_USB_CONNECTED, 0); } -void runtime_info_usb_connected_unset_event_cb() +void runtime_info_usb_connected_unset_event_cb(void) { runtime_info_vconf_unset_event_cb(VCONF_USB_CONNECTED, 0); } @@ -356,12 +349,12 @@ int runtime_info_charger_connected_get_value(runtime_info_value_h value) return RUNTIME_INFO_ERROR_NONE; } -int runtime_info_charger_connected_set_event_cb() +int runtime_info_charger_connected_set_event_cb(void) { return runtime_info_vconf_set_event_cb(VCONF_CHARGER_CONNECTED, RUNTIME_INFO_KEY_CHARGER_CONNECTED, 0); } -void runtime_info_charger_connected_unset_event_cb() +void runtime_info_charger_connected_unset_event_cb(void) { runtime_info_vconf_unset_event_cb(VCONF_CHARGER_CONNECTED, 0); } @@ -379,12 +372,12 @@ int runtime_info_vibration_level_haptic_feedback_get_value(runtime_info_value_h return RUNTIME_INFO_ERROR_NONE; } -int runtime_info_vibration_level_haptic_feedback_set_event_cb() +int runtime_info_vibration_level_haptic_feedback_set_event_cb(void) { return runtime_info_vconf_set_event_cb(VCONFKEY_SETAPPL_TOUCH_FEEDBACK_VIBRATION_LEVEL_INT, RUNTIME_INFO_KEY_VIBRATION_LEVEL_HAPTIC_FEEDBACK, 0); } -void runtime_info_vibration_level_haptic_feedback_unset_event_cb() +void runtime_info_vibration_level_haptic_feedback_unset_event_cb(void) { runtime_info_vconf_unset_event_cb(VCONFKEY_SETAPPL_TOUCH_FEEDBACK_VIBRATION_LEVEL_INT, 0); } -- 2.7.4