From 87a7d3d22e011ad0e6eacb3908e8e694c9409e73 Mon Sep 17 00:00:00 2001 From: "pr.jung" Date: Mon, 7 Nov 2016 19:32:44 +0900 Subject: [PATCH] Apply Tizen coding rule Change-Id: I4d96e35aa3728d8274219fdd6beab0b38f91571b Signed-off-by: pr.jung --- src/storage-common.c | 2 +- src/storage-inhouse.c | 68 +++++++++++++++++++++++++-------------------------- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/src/storage-common.c b/src/storage-common.c index 3885dca..c6321fd 100644 --- a/src/storage-common.c +++ b/src/storage-common.c @@ -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; } diff --git a/src/storage-inhouse.c b/src/storage-inhouse.c index f4698de..a8031bb 100755 --- a/src/storage-inhouse.c +++ b/src/storage-inhouse.c @@ -28,23 +28,23 @@ #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 - - 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 + + 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 - - 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 + + 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) { -- 2.7.4