common: Apply Tizen coding rule 85/79885/2 accepted/tizen/common/20160713.145128 accepted/tizen/ivi/20160713.125558 accepted/tizen/mobile/20160713.125506 accepted/tizen/tv/20160713.125524 accepted/tizen/wearable/20160713.125542 submit/tizen/20160713.101116
authorpr.jung <pr.jung@samsung.com>
Wed, 13 Jul 2016 09:35:13 +0000 (18:35 +0900)
committerpr.jung <pr.jung@samsung.com>
Wed, 13 Jul 2016 09:37:57 +0000 (18:37 +0900)
Change-Id: I1e3eca3ace0f3ae5d686df42dd434c7800eaa759
Signed-off-by: pr.jung <pr.jung@samsung.com>
include/storage-expand.h
include/storage.h
src/storage-external.c

index f0e5382..bd134ac 100644 (file)
@@ -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;
 
 /**
index 5df9a26..235c72b 100644 (file)
@@ -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
index 695c211..980c94b 100755 (executable)
@@ -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;
 }