add app_get_tep_resource_path api. 46/45146/1 accepted/tizen/mobile/20150803.094056 accepted/tizen/tv/20150803.094111 accepted/tizen/wearable/20150803.094121 submit/tizen/20150803.051904
authorJiwoong Im <jiwoong.im@samsung.com>
Mon, 3 Aug 2015 05:09:14 +0000 (14:09 +0900)
committerJiwoong Im <jiwoong.im@samsung.com>
Mon, 3 Aug 2015 05:09:14 +0000 (14:09 +0900)
Change-Id: Iea5dcce44d2fe6da44a94c4ac74e546d677716e8
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
app_common/app_path.c
include/app_common.h

index 82b2a9b28f4034874723a12821d2bc33b73a006b..f8e169c387edf4e22d7a8b1a19d98f4dc994e9e3 100644 (file)
@@ -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);
+}
index f025299e2405eaeb22cf698ba34dddeb4dda3d12..521388021fda94feff674e2326c7cc683bb48896 100644 (file)
@@ -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);
+
 /**
  * @}
  */