remove key(RUNTIME_INFO_KEY_ROTATION_LOCK_ENABLED)
authorNam KwanWoo <kw46.nam@samsung.com>
Tue, 19 Mar 2013 02:11:57 +0000 (11:11 +0900)
committerNam KwanWoo <kw46.nam@samsung.com>
Tue, 19 Mar 2013 02:11:57 +0000 (11:11 +0900)
Change-Id: I5efec29cb75844035b25eeb90dc87f8a31dbfc90

include/runtime_info.h [changed mode: 0755->0644]
include/runtime_info_private.h [changed mode: 0755->0644]
packaging/capi-system-runtime-info.spec [changed mode: 0755->0644]
src/runtime_info.c
src/runtime_info_system.c

old mode 100755 (executable)
new mode 100644 (file)
index 01edb0b..ba730de
@@ -57,7 +57,6 @@ typedef enum {
        RUNTIME_INFO_KEY_DATA_ROAMING_ENABLED, /**<Indicates whether data roaming is enabled. */
        RUNTIME_INFO_KEY_SILENT_MODE_ENABLED, /**<Indicates whether the device is in silent mode. */
        RUNTIME_INFO_KEY_VIBRATION_ENABLED, /**<Indicates whether vibration is enabled. */
-       RUNTIME_INFO_KEY_ROTATION_LOCK_ENABLED,
        RUNTIME_INFO_KEY_24HOUR_CLOCK_FORMAT_ENABLED, /**<Indicates whether 24-hour clock is enabled. */
        RUNTIME_INFO_KEY_FIRST_DAY_OF_WEEK, /**<Indicates the first day of week. */
        RUNTIME_INFO_KEY_LANGUAGE, /**<Indicates the current language setting. */
old mode 100755 (executable)
new mode 100644 (file)
index 575a47b..381916e
@@ -115,8 +115,6 @@ int runtime_info_vibration_enabled_get_value(runtime_info_value_h);
 int runtime_info_vibration_enabled_set_event_cb(void);
 void runtime_info_vibration_enabled_unset_event_cb(void);
 
-int runtime_info_rotation_lock_enabled_get_value(runtime_info_value_h);
-
 int runtime_info_24hour_format_get_value(runtime_info_value_h);
 int runtime_info_24hour_format_set_event_cb(void);
 void runtime_info_24hour_format_unset_event_cb(void);
@@ -142,28 +140,28 @@ int runtime_info_battery_charging_set_event_cb(void);
 void runtime_info_battery_charging_unset_event_cb(void);
 
 int runtime_info_tvout_connected_get_value(runtime_info_value_h value);
-int runtime_info_tvout_connected_set_event_cb();
-void runtime_info_tvout_connected_unset_event_cb();
+int runtime_info_tvout_connected_set_event_cb(void);
+void runtime_info_tvout_connected_unset_event_cb(void);
 
 int runtime_info_audio_jack_status_get_value (runtime_info_value_h value);
-int runtime_info_audio_jack_status_set_event_cb ();
-void runtime_info_audio_jack_status_unset_event_cb();
+int runtime_info_audio_jack_status_set_event_cb(void);
+void runtime_info_audio_jack_status_unset_event_cb(void);
 
 int runtime_info_sliding_keyboard_opened_get_value(runtime_info_value_h value);
-int runtime_info_sliding_keyboard_opened_set_event_cb();
-void runtime_info_sliding_keyboard_opened_unset_event_cb();
+int runtime_info_sliding_keyboard_opened_set_event_cb(void);
+void runtime_info_sliding_keyboard_opened_unset_event_cb(void);
 
 int runtime_info_usb_connected_get_value(runtime_info_value_h value);
-int runtime_info_usb_connected_set_event_cb();
-void runtime_info_usb_connected_unset_event_cb();
+int runtime_info_usb_connected_set_event_cb(void);
+void runtime_info_usb_connected_unset_event_cb(void);
 
 int runtime_info_charger_connected_get_value(runtime_info_value_h value);
-int runtime_info_charger_connected_set_event_cb();
-void runtime_info_charger_connected_unset_event_cb();
+int runtime_info_charger_connected_set_event_cb(void);
+void runtime_info_charger_connected_unset_event_cb(void);
 
 int runtime_info_vibration_level_haptic_feedback_get_value(runtime_info_value_h value);
-int runtime_info_vibration_level_haptic_feedback_set_event_cb();
-void runtime_info_vibration_level_haptic_feedback_unset_event_cb();
+int runtime_info_vibration_level_haptic_feedback_set_event_cb(void);
+void runtime_info_vibration_level_haptic_feedback_unset_event_cb(void);
 
 int runtime_info_auto_rotation_enabled_get_value(runtime_info_value_h);
 int runtime_info_auto_rotation_enabled_set_event_cb(void);
old mode 100755 (executable)
new mode 100644 (file)
index 8b68581..25523ce
@@ -1,6 +1,6 @@
 Name:       capi-system-runtime-info
 Summary:    A Runtime Information library in Tizen Native API
-Version:    0.0.2
+Version:    0.0.3
 Release:    0
 Group:      System/Libraries
 License:    Apache License, Version 2.0
index ff9d269..946e52f 100644 (file)
@@ -182,15 +182,6 @@ runtime_info_item_s runtime_info_item_table[] = {
 },
 
 {
-       RUNTIME_INFO_KEY_ROTATION_LOCK_ENABLED, /**<Indicates whether rotation lock is enabled. */
-       RUNTIME_INFO_DATA_TYPE_BOOL,
-       runtime_info_rotation_lock_enabled_get_value,
-       NULL,
-       NULL,
-       NULL
-},
-
-{
        RUNTIME_INFO_KEY_24HOUR_CLOCK_FORMAT_ENABLED, /**<Indicates the current time format. */
        RUNTIME_INFO_DATA_TYPE_BOOL,
        runtime_info_24hour_format_get_value,
index 97f55b5..f244772 100644 (file)
@@ -55,12 +55,12 @@ int runtime_info_flightmode_get_value(runtime_info_value_h value)
        return RUNTIME_INFO_ERROR_NONE;
 }
 
-int runtime_info_flightmode_set_event_cb()
+int runtime_info_flightmode_set_event_cb(void)
 {
        return runtime_info_vconf_set_event_cb(VCONF_FLIGHT_MODE, RUNTIME_INFO_KEY_FLIGHT_MODE_ENABLED, 0);
 }
 
-void runtime_info_flightmode_unset_event_cb()
+void runtime_info_flightmode_unset_event_cb(void)
 {
        runtime_info_vconf_unset_event_cb(VCONF_FLIGHT_MODE, 0);
 }
@@ -86,12 +86,12 @@ int runtime_info_audiojack_get_value(runtime_info_value_h value)
        return RUNTIME_INFO_ERROR_NONE;
 }
 
-int runtime_info_audiojack_set_event_cb()
+int runtime_info_audiojack_set_event_cb(void)
 {
        return runtime_info_vconf_set_event_cb(VCONF_AUDIO_JACK, RUNTIME_INFO_KEY_AUDIO_JACK_CONNECTED, 0);
 }
 
-void runtime_info_audiojack_unset_event_cb()
+void runtime_info_audiojack_unset_event_cb(void)
 {
        runtime_info_vconf_unset_event_cb(VCONF_AUDIO_JACK, 0);
 }
@@ -108,12 +108,12 @@ int runtime_info_silent_mode_get_value(runtime_info_value_h value)
        return RUNTIME_INFO_ERROR_NONE;
 }
 
-int runtime_info_silent_mode_set_event_cb()
+int runtime_info_silent_mode_set_event_cb(void)
 {
        return runtime_info_vconf_set_event_cb(VCONF_SILENT_MODE, RUNTIME_INFO_KEY_SILENT_MODE_ENABLED, 0);
 }
 
-void runtime_info_silent_mode_unset_event_cb()
+void runtime_info_silent_mode_unset_event_cb(void)
 {
        runtime_info_vconf_unset_event_cb(VCONF_SILENT_MODE, 0);
 }
@@ -130,23 +130,16 @@ int runtime_info_vibration_enabled_get_value(runtime_info_value_h value)
        return RUNTIME_INFO_ERROR_NONE;
 }
 
-int runtime_info_vibration_enabled_set_event_cb()
+int runtime_info_vibration_enabled_set_event_cb(void)
 {
        return runtime_info_vconf_set_event_cb(VCONF_VIBRATION_ENABLED, RUNTIME_INFO_KEY_VIBRATION_ENABLED, 0);
 }
 
-void runtime_info_vibration_enabled_unset_event_cb()
+void runtime_info_vibration_enabled_unset_event_cb(void)
 {
        runtime_info_vconf_unset_event_cb(VCONF_VIBRATION_ENABLED, 0);
 }
 
-int runtime_info_rotation_lock_enabled_get_value(runtime_info_value_h value)
-{
-       value->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);
 }