From c1f4de632721663b2f3a2f42fbd594d4cce530bb Mon Sep 17 00:00:00 2001 From: Jiwoong Im Date: Mon, 3 Aug 2015 14:09:14 +0900 Subject: add app_get_tep_resource_path api. Change-Id: Iea5dcce44d2fe6da44a94c4ac74e546d677716e8 Signed-off-by: Jiwoong Im --- app_common/app_path.c | 6 ++++++ include/app_common.h | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/app_common/app_path.c b/app_common/app_path.c index 82b2a9b..f8e169c 100644 --- a/app_common/app_path.c +++ b/app_common/app_path.c @@ -72,3 +72,9 @@ char *app_get_external_shared_data_path(void) const char *buf = aul_get_app_external_shared_data_path(); return _STRDUP(buf); } + +char *app_get_tep_resource_path(void) +{ + const char *buf = aul_get_app_tep_resource_path(); + return _STRDUP(buf); +} diff --git a/include/app_common.h b/include/app_common.h index f025299..5213880 100644 --- a/include/app_common.h +++ b/include/app_common.h @@ -400,6 +400,18 @@ char *app_get_external_cache_path(void); */ char *app_get_external_shared_data_path(void); +/** + * @brief Gets the absolute path to the application's TEP(Tizen Expansion Package) directory. + * The resource files are delivered with the expansion package. + * @details An application can only read its own files in the application's TEP(Tizen Expansion Package) directory. + * @since_tizen 2.4 + * @remarks The returned path should be released. + * + * @return The absolute path to the application's TEP(Tizen Expansion Package) directory, @n + * otherwise a null pointer if the memory is insufficient + **/ +char *app_get_tep_resource_path(void); + /** * @} */ -- cgit v1.2.3