dbHandle->bindText(pMsg->thumbPath, 1);
- if (pMsg->msgText[0] != '\0' && g_file_get_contents(pMsg->msgText, &pFileData, &fileSize, NULL) == true) {
+ if (pMsg->msgText[0] != '\0' && g_file_get_contents((gchar*)pMsg->msgText, (gchar**)&pFileData, (gsize*)&fileSize, NULL) == true) {
dbHandle->bindText(pFileData, 2);
}
memset(fn,0x00,MSG_FILEPATH_LEN_MAX);
snprintf(fn, MSG_FILEPATH_LEN_MAX, "%s%s", MSG_IPC_DATA_PATH, pMsg->msgData);
- if (g_file_get_contents(fn, &contents, NULL, NULL)) {
+ if (g_file_get_contents((gchar*)fn, (gchar**)&contents, NULL, NULL)) {
MSG_DEBUG("g_file_get_contents() Success!!");
dbHandle->bindText(contents, 2);
} else {
}
// if (pMsg->msgText[0] != '\0') {
-// g_file_get_contents(pMsg->msgText, &pFileData, (gsize *)&fileSize, NULL);
+// g_file_get_contents((gchar*)pMsg->msgText, (gchar**)&pFileData, (gsize*)&fileSize, NULL);
// MSG_DEBUG("file size [%d]", fileSize);
// }
dbHandle->bindText(pMsg->subject, 1);
- if (pMsg->msgText[0] != '\0' && g_file_get_contents(pMsg->msgText, &pFileData, &fileSize, NULL) == true) {
+ if (pMsg->msgText[0] != '\0' && g_file_get_contents((gchar*)pMsg->msgText, (gchar**)&pFileData, (gsize*)&fileSize, NULL) == true) {
dbHandle->bindText(pFileData, 2);
} else {
dbHandle->bindText("", 2);
}
// if (MsgOpenAndReadFile(pMsg->msgText, &pFileData, &fileSize) == false) {
- if (g_file_get_contents(pMsg->msgText, &pFileData, &fileSize, NULL) == false) {
+ if (g_file_get_contents((gchar*)pMsg->msgText, (gchar**)&pFileData, (gsize*)&fileSize, NULL) == false) {
return MSG_ERR_STORAGE_ERROR;
}
dbHandle->bindText(pMsg->subject, 1);
- if (pMsg->msgText[0] != '\0' && g_file_get_contents(pMsg->msgText, &pFileData, &fileSize, NULL) == true) {
+ if (pMsg->msgText[0] != '\0' && g_file_get_contents((gchar*)pMsg->msgText, (gchar**)&pFileData, (gsize*)&fileSize, NULL) == true) {
dbHandle->bindText(pFileData, 2);
} else {
dbHandle->bindText("", 2);
return MSG_ERR_DB_PREPARE;
}
- if (pMsg->msgText[0] != '\0' && g_file_get_contents(pMsg->msgText, &pFileData, &fileSize, NULL) == true) {
+ if (pMsg->msgText[0] != '\0' && g_file_get_contents((gchar*)pMsg->msgText, (gchar**)&pFileData, (gsize*)&fileSize, NULL) == true) {
dbHandle->bindText(pFileData, 1);
} else {
dbHandle->bindText("", 1);
return MsgMakeEvent(NULL, 0, MSG_EVENT_PLG_SENT_STATUS_CNF, MSG_SUCCESS, (void**)ppEvent);
}
- unsigned int ret[3] = {0}; //3// reqid, status, object
+ unsigned long ret[3] = {0}; //3// reqid, status, object
- ret[0] = pStatus->reqId;
- ret[1] = pStatus->status;
+ ret[0] = (unsigned long)pStatus->reqId;
+ ret[1] = (unsigned long)pStatus->status;
ret[2] = prxInfo->handleAddr;
// Make Event Data for APP
MsgTransactionManager::instance()->delProxyInfo(reqID);
} else {
- unsigned int ret[3] = {0}; //3// reqid, status, object
+ unsigned long ret[3] = {0}; //3// reqid, status, object
- ret[0] = reqID;
- ret[1] = msgInfo.networkStatus;
+ ret[0] = (unsigned long)reqID;
+ ret[1] = (unsigned long)msgInfo.networkStatus;
ret[2] = prxInfo->handleAddr;
// Make Event Data for APP
typedef struct
{
int listenerFd; /**< Rx fd for status cnf */
- unsigned int handleAddr; /**< Handle address for status cnf */
+ unsigned long handleAddr; /**< Handle address for status cnf */
msg_message_id_t sentMsgId; /**< The ID of a sent message for updating message status */
} MSG_PROXY_INFO_S;
fclose(respfile);
respfile = NULL;
- if (g_file_get_contents(conf_filename, &request_info.response_data, &request_info.response_data_len, NULL) == false) {
+ if (g_file_get_contents((gchar*)conf_filename, (gchar**)&request_info.response_data, (gsize*)&request_info.response_data_len, NULL) == false) {
MSG_WARN("Fail to g_file_get_contents");
}
}
} else {
strncpy(filePath, pMedia->szFilePath, MSG_FILEPATH_LEN_MAX);
- g_file_get_contents((const gchar *)filePath, &fileContent, NULL, NULL);
+ g_file_get_contents((const gchar*)filePath, (gchar**)&fileContent, NULL, NULL);
bFiltered = MsgCheckFilterByWord(dbHandle, (const char *)fileContent);
gsize length = 0;
if (MsgAccessFile(smil_multipart->szFilePath, F_OK)) {
- g_file_get_contents(smil_multipart->szFilePath, &contents, &length, NULL);
+ g_file_get_contents((gchar*)smil_multipart->szFilePath, (gchar**)&contents, (gsize*)&length, NULL);
MmsInsertPresentation(pMmsMsg, MIME_APPLICATION_SMIL, NULL, contents, length);
MMS_DATA_S *pMmsData = NULL;
//pMsgInfo->msgData is Filepath of json
- g_file_get_contents(pMsgInfo->msgData, &pSerializedMms, &pSerializedMmsSize, NULL);
+ g_file_get_contents((gchar*)pMsgInfo->msgData, (gchar**)&pSerializedMms, (gsize*)&pSerializedMmsSize, NULL);
if (MsgDeserializeMmsData(pSerializedMms, strlen(pSerializedMms), &pMmsData) != 0) {
MSG_DEBUG("Fail to Deserialize Message Data");
gchar *contents = NULL;
gsize length = 0;
- g_file_get_contents (smil_multipart->szFilePath, &contents, &length, NULL);
+ g_file_get_contents ((gchar*)smil_multipart->szFilePath, (gchar**)&contents, (gsize*)&length, NULL);
smil_multipart->pMultipartData = contents;
smil_multipart->nMultipartDataLen = length;
TelNetworkServiceType_t *type = (TelNetworkServiceType_t *)data;
- MSG_INFO("network status type [%d], simIndex [%d]", *type, (int)user_data);
+ MSG_INFO("network status type [%d]", *type);
if (*type > TAPI_NETWORK_SERVICE_TYPE_SEARCH) {
SmsPluginEventHandler::instance()->handleResendMessage(); // Call Event Handler
MSG_DEBUG("tel_register_noti_event is failed : [%s]", TAPI_NOTI_SAT_MO_SM_CONTROL_RESULT);
if (tel_register_noti_event(pTapiHandle, TAPI_NOTI_SIM_STATUS, TapiEventSimStatusChange, NULL) != TAPI_API_SUCCESS)
MSG_DEBUG("tel_register_noti_event is failed : [%s]", TAPI_NOTI_SIM_STATUS);
- if (tel_register_noti_event(pTapiHandle, TAPI_PROP_NETWORK_SERVICE_TYPE, TapiEventNetworkStatusChange, (void*)simIndex) != TAPI_API_SUCCESS)
+ if (tel_register_noti_event(pTapiHandle, TAPI_PROP_NETWORK_SERVICE_TYPE, TapiEventNetworkStatusChange, NULL) != TAPI_API_SUCCESS)
MSG_DEBUG("tel_register_noti_event is failed : [%s]", TAPI_PROP_NETWORK_SERVICE_TYPE);
if (tel_register_noti_event(pTapiHandle, TAPI_NOTI_SIM_REFRESHED, TapiEventSimRefreshed, NULL) != TAPI_API_SUCCESS)
MSG_DEBUG("tel_register_noti_event is failed : [%s]", TAPI_NOTI_SIM_REFRESHED);
chInfo.listenerFd = MsgProxyListener::instance()->getRemoteFd();
- chInfo.handleAddr = (unsigned int) this;
+ chInfo.handleAddr = (unsigned long) this;
/* Allocate Memory to Command Data */
char* encodedData = NULL;
gchar *contents = NULL;
gsize length = 0;
- g_file_get_contents(pSrc->smil->szFilePath, &contents, &length, NULL);
+ g_file_get_contents((gchar*)pSrc->smil->szFilePath, (gchar**)&contents, (gsize*)&length, NULL);
if (contents) {
MsgSmilParseSmilDoc(pDst, contents);
if (pMultipart->pMultipartData != NULL)
return 0;
- if (g_file_get_contents(pMultipart->szFilePath, &pMultipart->pMultipartData, &pMultipart->nMultipartDataLen, NULL) == false)
+ if (g_file_get_contents((gchar*)pMultipart->szFilePath, (gchar**)&pMultipart->pMultipartData, (gsize*)&pMultipart->nMultipartDataLen, NULL) == false)
return -1;
//Due to Get data for Backup message
gsize serialized_len = 0;
MSG_DEBUG("ipc_path [%s]", ipc_filepath);
- if (!g_file_get_contents(ipc_filepath, &serialized_data, &serialized_len, NULL)) {
+ if (!g_file_get_contents((gchar*)ipc_filepath, (gchar**)&serialized_data, (gsize*)&serialized_len, NULL)) {
return MSG_ERR_PERMISSION_DENIED;
}