Storeage apis will return the proper directory path as per user accoount.
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: I35e249a9396f52de0c09191e88f3cac89f758f92
SET(INC_DIR include)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/${INC_DIR})
-SET(dependents "dlog capi-base-common vconf glib-2.0")
+SET(dependents "dlog capi-base-common vconf glib-2.0 libtzplatform-config")
SET(pc_dependents "capi-base-common")
INCLUDE(FindPkgConfig)
BuildRequires: pkgconfig(capi-base-common)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(libtzplatform-config)
%description
development package of library to get storage
#include <errno.h>
#include <limits.h>
#include <sys/statvfs.h>
+#include <tzplatform_config.h>
#include "common.h"
#include "log.h"
-#define INTERNAL_MEMORY_PATH "/opt/usr/media"
#ifndef __USE_FILE_OFFSET64
int __WEAK__ storage_get_internal_memory_size(struct statvfs *buf);
static const char *internal_get_root(void)
{
- return INTERNAL_MEMORY_PATH;
+ return tzplatform_getenv(TZ_USER_CONTENT);
}
const struct storage_ops internal = {