Remove hardcoded path for multiuser support
[platform/core/system/sync-agent.git] / src / fw-plugins / common-public / slp-sysnoti-wap-push / src / plugin_interface.c
index ba59872..47619e4 100755 (executable)
@@ -37,6 +37,8 @@
 /* for log */
 #include "utility/sync_util.h"
 
+#include <tzplatform_config.h>
+
 #ifndef EXPORT_API
 #define EXPORT_API __attribute__ ((visibility("default")))
 #endif
@@ -46,8 +48,8 @@
 #define LOG_TAG        "PLUGIN_PM_SYSNOTI_WAP_PUSH"
 #endif
 
-#define CP_HEADER_DATA_PATH "/opt/data/header_log.wbxml"
-#define CP_BODY_DATA_PATH "/opt/data/body_log.wbxml"
+#define CP_HEADER_DATA_PATH tzplatform_mkpath(TZ_SYS_DATA,"header_log.wbxml")
+#define CP_BODY_DATA_PATH tzplatform_mkpath(TZ_SYS_DATA,"body_log.wbxml")
 
 static msg_handle_t msg_handle = NULL;