diff options
author | Jiwoong Im <jiwoong.im@samsung.com> | 2015-08-03 14:09:14 +0900 |
---|---|---|
committer | Jiwoong Im <jiwoong.im@samsung.com> | 2015-08-03 14:09:14 +0900 |
commit | c1f4de632721663b2f3a2f42fbd594d4cce530bb (patch) | |
tree | d45cc47543f71e697bde43ef0090c64f27c87129 | |
parent | 8a522e073e3144f4d300d3e2d997c4ae1e658b69 (diff) | |
download | application-accepted/tizen/tv/20150803.094111.tar.gz application-accepted/tizen/tv/20150803.094111.tar.bz2 application-accepted/tizen/tv/20150803.094111.zip |
add app_get_tep_resource_path api.submit/tizen/20150803.051904accepted/tizen/wearable/20150803.094121accepted/tizen/tv/20150803.094111accepted/tizen/mobile/20150803.094056
Change-Id: Iea5dcce44d2fe6da44a94c4ac74e546d677716e8
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
-rw-r--r-- | app_common/app_path.c | 6 | ||||
-rw-r--r-- | include/app_common.h | 12 |
2 files changed, 18 insertions, 0 deletions
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 @@ -401,6 +401,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); + +/** * @} */ |