Fix refer tzplatform apis
[platform/core/uifw/stt.git] / common / stt_defs.h
index abcabe4..b94e4e5 100644 (file)
@@ -84,19 +84,19 @@ extern "C" {
 * Defines for configuration
 *******************************************************************************************/
 
-#define STT_CONFIG_BASE                tzplatform_mkpath(TZ_USER_HOME, "share/.voice")
-#define STT_CONFIG                     tzplatform_mkpath(TZ_USER_HOME, "share/.voice/stt-config.xml")
-#define STT_DEFAULT_CONFIG             tzplatform_mkpath(TZ_SYS_RO_SHARE, "/voice/stt/1.0/stt-config.xml")
+#define STT_CONFIG_BASE                tzplatform_mkpath(tzplatform_getid("TZ_USER_HOME"), "share/.voice")
+#define STT_CONFIG                     tzplatform_mkpath(tzplatform_getid("TZ_USER_HOME"), "share/.voice/stt-config.xml")
+#define STT_DEFAULT_CONFIG             tzplatform_mkpath(tzplatform_getid("TZ_SYS_RO_SHARE"), "/voice/stt/1.0/stt-config.xml")
 
-#define STT_TIME_INFO_PATH             tzplatform_mkpath(TZ_USER_HOME, "share/.voice/stt-time.xml")
+#define STT_TIME_INFO_PATH             tzplatform_mkpath(tzplatform_getid("TZ_USER_HOME"), "share/.voice/stt-time.xml")
 
-#define STT_DEFAULT_ENGINE             tzplatform_mkpath(TZ_SYS_RO_SHARE, "/voice/stt/1.0/engine")
-#define STT_DEFAULT_ENGINE_INFO                tzplatform_mkpath(TZ_SYS_RO_SHARE, "/voice/stt/1.0/engine-info")
-#define STT_DEFAULT_ENGINE_SETTING     tzplatform_mkpath(TZ_SYS_RO_SHARE, "/voice/stt/1.0/engine-setting")
+#define STT_DEFAULT_ENGINE             tzplatform_mkpath(tzplatform_getid("TZ_SYS_RO_SHARE"), "/voice/stt/1.0/engine")
+#define STT_DEFAULT_ENGINE_INFO                tzplatform_mkpath(tzplatform_getid("TZ_SYS_RO_SHARE"), "/voice/stt/1.0/engine-info")
+#define STT_DEFAULT_ENGINE_SETTING     tzplatform_mkpath(tzplatform_getid("TZ_SYS_RO_SHARE"), "/voice/stt/1.0/engine-setting")
 
-#define STT_HOME                       tzplatform_mkpath(TZ_USER_HOME, "share/.voice/stt")
-#define STT_DOWNLOAD_BASE              tzplatform_mkpath(TZ_USER_HOME, "share/.voice/stt/1.0")
-#define STT_DOWNLOAD_ENGINE_INFO       tzplatform_mkpath(TZ_USER_HOME, "share/.voice/stt/1.0/engine-info")
+#define STT_HOME                       tzplatform_mkpath(tzplatform_getid("TZ_USER_HOME"), "share/.voice/stt")
+#define STT_DOWNLOAD_BASE              tzplatform_mkpath(tzplatform_getid("TZ_USER_HOME"), "share/.voice/stt/1.0")
+#define STT_DOWNLOAD_ENGINE_INFO       tzplatform_mkpath(tzplatform_getid("TZ_USER_HOME"), "share/.voice/stt/1.0/engine-info")
 
 #define STT_RETRY_COUNT                        5