/*
* Copyright 2012-2013 Samsung Electronics Co., Ltd
*
-* Licensed under the Flora License, Version 1.0 (the "License");
+* Licensed under the Flora License, Version 1.1 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
-* http://floralicense.org
+* http://floralicense.org/license/
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
INCLUDE FILES
==================================================================================================*/
#include "MsgMmsTypes.h"
-
+#include <inttypes.h>
+#include <tzplatform_config.h>
/*==================================================================================================
DEFINES
==================================================================================================*/
-#define MSG_DATA_ROOT_PATH "/opt/usr/data/msg-service/"
-#define MSG_DATA_PATH MSG_DATA_ROOT_PATH"msgdata/"
-#define MSG_SMIL_FILE_PATH MSG_DATA_ROOT_PATH"smildata/"
-#define MSG_IPC_DATA_PATH MSG_DATA_ROOT_PATH"ipcdata/"
-#define MSG_THUMBNAIL_PATH MSG_DATA_PATH"thumbnails/"
+#define MSG_DATA_ROOT_PATH tzplatform_mkpath(TZ_USER_DATA,"msg-service")
+#define MSG_DATA_PATH tzplatform_mkpath3(TZ_USER_DATA,"msg-service","msgdata")
+#define MSG_SMIL_FILE_PATH tzplatform_mkpath3(TZ_USER_DATA,"msg-service","smildata")
+#define MSG_IPC_DATA_PATH tzplatform_mkpath3(TZ_USER_DATA,"msg-service","ipcdata")
+#define MSG_THUMBNAIL_PATH tzplatform_mkpath4(TZ_USER_DATA,"msg-service","ipcdata","thumbnails")
// temporary
-#define TPDU_LOG_FILE MSG_DATA_ROOT_PATH"tpduLog.txt"
+#define TPDU_LOG_FILE tzplatform_mkpath3(TZ_USER_DATA,"msg-service","tpduLog.txt")
#define MSG_NATIONAL_SIM "memory/private/msg-service/national_sim"
#define MSG_SIM_MSISDN "memory/private/msg-service/msisdn"
#define MAX_FULL_PATH_SIZE 320 // max length for internal file path
typedef struct
{
int listenerFd; /**< Rx fd for status cnf */
+#ifdef __x86_64__
+ uint64_t handleAddr; /**< Handle address for status cnf */
+#else
unsigned int handleAddr; /**< Handle address for status cnf */
+#endif
msg_message_id_t sentMsgId; /**< The ID of a sent message for updating message status */
-} MSG_PROXY_INFO_S;
+} MSG_PROXY_INFO_S;
/**
* @brief Aux data structure for MSG_CMD_REG_INCOMING_MSG_CB. \n