From: Jiwoong Im Date: Mon, 3 Aug 2015 05:09:14 +0000 (+0900) Subject: add app_get_tep_resource_path api. X-Git-Tag: submit/tizen/20150803.051904^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F46%2F45146%2F1;p=platform%2Fcore%2Fapi%2Fapplication.git add app_get_tep_resource_path api. Change-Id: Iea5dcce44d2fe6da44a94c4ac74e546d677716e8 Signed-off-by: Jiwoong Im --- 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); + /** * @} */