#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)
{
}
/*
- 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)
{