From: Taeyoung Kim Date: Thu, 31 Mar 2016 23:53:07 +0000 (+0900) Subject: common: apply Tizen Coding Rule X-Git-Tag: accepted/tizen/common/20160510.051027~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F61%2F64361%2F2;p=platform%2Fcore%2Fapi%2Fdevice.git common: apply Tizen Coding Rule - The positions of the braces are changed Change-Id: I9e907e6fa8203089d8824d193d03f9cd2e0793c1 Signed-off-by: Taeyoung Kim --- diff --git a/include/battery.h b/include/battery.h index 6692181..1173df4 100755 --- a/include/battery.h +++ b/include/battery.h @@ -35,8 +35,7 @@ extern "C" { * @brief Enumeration for the battery level status. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef enum -{ +typedef enum { DEVICE_BATTERY_LEVEL_EMPTY = 0, /**< The battery goes empty. Prepare for the safe termination of the application, because the device starts a shutdown process soon after entering this level. */ DEVICE_BATTERY_LEVEL_CRITICAL, /**< The battery charge is at a critical state. You may have to stop using multimedia features, because they are not guaranteed to work correctly at this battery status. */ DEVICE_BATTERY_LEVEL_LOW, /**< The battery has little charge left. */ diff --git a/include/callback.h b/include/callback.h index 1a7ee5d..91d207d 100755 --- a/include/callback.h +++ b/include/callback.h @@ -35,8 +35,7 @@ extern "C" { * @brief Enumeration for the device state callback. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef enum -{ +typedef enum { DEVICE_CALLBACK_BATTERY_CAPACITY, /**< Called when a battery charge percentage is changed */ DEVICE_CALLBACK_BATTERY_LEVEL, /**< Called when a battery level is changed */ DEVICE_CALLBACK_BATTERY_CHARGING, /**< Called when battery charging state is changed */ diff --git a/include/device-error.h b/include/device-error.h index 6cbe279..4fdd358 100755 --- a/include/device-error.h +++ b/include/device-error.h @@ -34,8 +34,7 @@ extern "C" { * @brief Enumerations of error code for Device. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef enum -{ +typedef enum { DEVICE_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */ DEVICE_ERROR_OPERATION_FAILED = TIZEN_ERROR_NOT_PERMITTED, /**< Operation not permitted */ DEVICE_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */ diff --git a/include/device.h b/include/device.h index efbc83e..9969ed9 100755 --- a/include/device.h +++ b/include/device.h @@ -36,8 +36,7 @@ extern "C" { /** * @brief Enumerations of the battery warning status */ -typedef enum -{ +typedef enum { DEVICE_BATTERY_WARN_EMPTY, /**< The battery goes empty. Prepare for the safe termination of the application, because the device starts a shutdown process soon after entering this level. */ DEVICE_BATTERY_WARN_CRITICAL, /**< The battery charge is at a critical state. You may have to stop using multimedia features, because they are not guaranteed to work correctly at this battery status. */ DEVICE_BATTERY_WARN_LOW, /**< The battery has little charge left. */ @@ -48,8 +47,7 @@ typedef enum /** * @brief Enumerations of the battery remaining time type */ -typedef enum -{ +typedef enum { DEVICE_BATTERY_REMAINING_TIME_TO_FULLY_CHARGED, DEVICE_BATTERY_REMAINING_TIME_TO_DISCHARGED } device_battery_remaining_time_type_e; @@ -57,8 +55,7 @@ typedef enum /** * @brief Enumerations of the battery level status */ -typedef enum -{ +typedef enum { DEVICE_BATTERY_LEVEL_EMPTY = 0, /**< The battery goes empty. Prepare for the safe termination of the application, because the device starts a shutdown process soon after entering this level. */ DEVICE_BATTERY_LEVEL_CRITICAL, /**< The battery charge is at a critical state. You may have to stop using multimedia features, because they are not guaranteed to work correctly at this battery status. */ DEVICE_BATTERY_LEVEL_LOW, /**< The battery has little charge left. */ diff --git a/include/power.h b/include/power.h index dc6790d..02cd8aa 100755 --- a/include/power.h +++ b/include/power.h @@ -54,8 +54,7 @@ extern "C" { * @remarks You cannot combine with an enum below. * */ -typedef enum -{ +typedef enum { POWER_LOCK_CPU, /**< CPU lock */ POWER_LOCK_DISPLAY, /**< Display normal lock (Deprecated since 2.4. Use efl_util_set_window_screen_mode() instead) */ POWER_LOCK_DISPLAY_DIM, /**< Display dim lock (Deprecated since 2.4. Use efl_util_set_window_screen_mode() instead) */