summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app_common/app_path.c6
-rw-r--r--include/app_common.h12
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);
+
+/**
* @}
*/