Apply Tizen coding rule 21/96021/1
authorpr.jung <pr.jung@samsung.com>
Mon, 7 Nov 2016 10:32:44 +0000 (19:32 +0900)
committerpr.jung <pr.jung@samsung.com>
Mon, 7 Nov 2016 10:34:09 +0000 (19:34 +0900)
Change-Id: I4d96e35aa3728d8274219fdd6beab0b38f91571b
Signed-off-by: pr.jung <pr.jung@samsung.com>
src/storage-common.c
src/storage-inhouse.c

index 3885dca..c6321fd 100644 (file)
@@ -38,7 +38,7 @@ int is_compat_bind_mount(void)
 
        fs = mnt_table_find_target(t, COMPAT_DIR, MNT_ITER_BACKWARD);
        if (fs) {
-                // TODO : mnt_fs_get_root(fs) should be matched to tzplatform_getenv(TZ_USER_CONTENT).
+               // TODO : mnt_fs_get_root(fs) should be matched to tzplatform_getenv(TZ_USER_CONTENT).
                mnt_free_table(t);
                return 1;
        }
index f4698de..a8031bb 100755 (executable)
 #include "storage-external-dbus.h"
 
 /*
-   Get compat path from origin Multi-user path
-   from TZ_USER_CONTENT/.. to /opt/usr/media/..
-   Input should be normalized path like /opt/usr/home/owner/media (TODO: internal normalization)
-
-   Why this API should be provided?
-   In multi-user environment, each user has own compat content direcotry.(/opt/usr/media)
-   However, although system daemon operates real path,
-            system daemon needs to provide compat path to App if the real path is converted.
-
-   Usage:
-       #include <storage-internal.h>
-
-       char dest[100];
-       if(storage_get_compat_internal_path(src, sizeof(dest), dest) < 0)
-               // cannot convert. use src path
-       else
-               // can convert. use dest path
+       Get compat path from origin Multi-user path
+       from TZ_USER_CONTENT/.. to /opt/usr/media/..
+       Input should be normalized path like /opt/usr/home/owner/media (TODO: internal normalization)
+
+       Why this API should be provided?
+       In multi-user environment, each user has own compat content direcotry.(/opt/usr/media)
+       However, although system daemon operates real path,
+               system daemon needs to provide compat path to App if the real path is converted.
+
+       Usage:
+               #include <storage-internal.h>
+
+               char dest[100];
+               if(storage_get_compat_internal_path(src, sizeof(dest), dest) < 0)
+                       // cannot convert. use src path
+               else
+                       // can convert. use dest path
  */
 API int storage_get_compat_internal_path(const char* origin, int len, char* compat)
 {
@@ -80,23 +80,23 @@ API int storage_get_compat_internal_path(const char* origin, int len, char* comp
 }
 
 /*
-   Get Multi-user path from compat path
-   from /opt/usr/media/.. to TZ_USER_CONTENT/..
-   Input should be normalized path like /opt/usr/media (TODO: internal normalization)
-
-   Why this API should be provided?
-   In multi-user environment, each user has own compat content direcotry.(/opt/usr/media)
-   However, although some APIs send the compat path to system daemon,
-            system daemon should access real path.
-
-   Usage:
-       #include <storage-internal.h>
-
-       char dest[100];
-       if(storage_get_origin_internal_path(src, sizeof(dest), dest) < 0)
-               // cannot convert. use src path
-       else
-               // can convert. use dest path
+       Get Multi-user path from compat path
+       from /opt/usr/media/.. to TZ_USER_CONTENT/..
+       Input should be normalized path like /opt/usr/media (TODO: internal normalization)
+
+       Why this API should be provided?
+       In multi-user environment, each user has own compat content direcotry.(/opt/usr/media)
+       However, although some APIs send the compat path to system daemon,
+               system daemon should access real path.
+
+       Usage:
+               #include <storage-internal.h>
+
+               char dest[100];
+               if(storage_get_origin_internal_path(src, sizeof(dest), dest) < 0)
+                       // cannot convert. use src path
+               else
+                       // can convert. use dest path
 */
 API int storage_get_origin_internal_path(const char* compat, int len, char* origin)
 {