From: pr.jung Date: Wed, 13 Jul 2016 09:35:13 +0000 (+0900) Subject: common: Apply Tizen coding rule X-Git-Tag: submit/tizen/20160713.101116^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b3d7ecec520670c1f9bb6f774bf35843a67b1ac;p=platform%2Fcore%2Fsystem%2Flibstorage.git common: Apply Tizen coding rule Change-Id: I1e3eca3ace0f3ae5d686df42dd434c7800eaa759 Signed-off-by: pr.jung --- diff --git a/include/storage-expand.h b/include/storage-expand.h index f0e5382..bd134ac 100644 --- a/include/storage-expand.h +++ b/include/storage-expand.h @@ -36,11 +36,11 @@ extern "C" { * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ typedef enum { - STORAGE_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */ - STORAGE_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */ - STORAGE_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */ - STORAGE_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NO_SUCH_DEVICE, /**< Storage not supported */ - STORAGE_ERROR_OPERATION_FAILED = TIZEN_ERROR_SYSTEM_CLASS | 0x12, /**< Operation failed */ + STORAGE_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */ + STORAGE_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */ + STORAGE_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */ + STORAGE_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NO_SUCH_DEVICE, /**< Storage not supported */ + STORAGE_ERROR_OPERATION_FAILED = TIZEN_ERROR_SYSTEM_CLASS | 0x12, /**< Operation failed */ } storage_error_e; @@ -49,8 +49,8 @@ typedef enum { * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ typedef enum { - STORAGE_TYPE_INTERNAL, /**< Internal device storage (built-in storage in a device, non-removable) */ - STORAGE_TYPE_EXTERNAL, /**< External storage */ + STORAGE_TYPE_INTERNAL, /**< Internal device storage (built-in storage in a device, non-removable) */ + STORAGE_TYPE_EXTERNAL, /**< External storage */ } storage_type_e; @@ -59,10 +59,10 @@ typedef enum { * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ typedef enum { - STORAGE_STATE_UNMOUNTABLE = -2, /**< Storage is present but cannot be mounted. Typically it happens if the file system of the storage is corrupted */ - STORAGE_STATE_REMOVED = -1, /**< Storage is not present */ - STORAGE_STATE_MOUNTED = 0, /**< Storage is present and mounted with read/write access */ - STORAGE_STATE_MOUNTED_READ_ONLY = 1, /**< Storage is present and mounted with read only access */ + STORAGE_STATE_UNMOUNTABLE = -2, /**< Storage is present but cannot be mounted. Typically it happens if the file system of the storage is corrupted */ + STORAGE_STATE_REMOVED = -1, /**< Storage is not present */ + STORAGE_STATE_MOUNTED = 0, /**< Storage is present and mounted with read/write access */ + STORAGE_STATE_MOUNTED_READ_ONLY = 1, /**< Storage is present and mounted with read only access */ } storage_state_e; /** diff --git a/include/storage.h b/include/storage.h index 5df9a26..235c72b 100644 --- a/include/storage.h +++ b/include/storage.h @@ -52,14 +52,14 @@ extern "C" { * @see * @par Example: * @code - * ... + * ... * struct statvfs s; - * if (storage_get_internal_memory_size(&s) < 0) - * dlog_print(DLOG_DEBUG, LOG_TAG, "Fail to get internal memory size"); - * else - * dlog_print(DLOG_DEBUG, LOG_TAG, "Total mem : %lf, Avail mem : %lf", + * if (storage_get_internal_memory_size(&s) < 0) + * dlog_print(DLOG_DEBUG, LOG_TAG, "Fail to get internal memory size"); + * else + * dlog_print(DLOG_DEBUG, LOG_TAG, "Total mem : %lf, Avail mem : %lf", * (double)s.f_frsize*s.f_blocks, (double)s.f_bsize*s.f_bavail); - * ... + * ... * @endcode */ #ifndef __USE_FILE_OFFSET64 @@ -84,14 +84,14 @@ extern int storage_get_internal_memory_size64(struct statvfs *buf); * @see * @par Example: * @code - * ... + * ... * struct statvfs s; - * if (storage_get_external_memory_size(&s) < 0) - * dlog_print(DLOG_DEBUG, LOG_TAG, "Fail to get external memory size"); - * else - * dlog_print(DLOG_DEBUG, LOG_TAG, "Total mem : %lf, Avail mem : %lf", + * if (storage_get_external_memory_size(&s) < 0) + * dlog_print(DLOG_DEBUG, LOG_TAG, "Fail to get external memory size"); + * else + * dlog_print(DLOG_DEBUG, LOG_TAG, "Total mem : %lf, Avail mem : %lf", * (double)s.f_frsize*s.f_blocks, (double)s.f_bsize*s.f_bavail); - * ... + * ... * @endcode */ #ifndef __USE_FILE_OFFSET64 diff --git a/src/storage-external.c b/src/storage-external.c index 695c211..980c94b 100755 --- a/src/storage-external.c +++ b/src/storage-external.c @@ -410,7 +410,7 @@ int storage_ext_get_state(int storage_id, storage_state_e *state) if (ret < 0) _E("Failed to get state of storage id (%d, ret:%d)", storage_id, ret); //LCOV_EXCL_LINE -out: +out : storage_ext_release_device(&dev); return ret; }