return ERROR_CONVERT(ret);
switch (msgType) {
+//LCOV_EXCL_START
case MSG_TYPE_SMS_CB:
case MSG_TYPE_SMS_JAVACB:
*type = MESSAGES_TYPE_SMS_CB;
case MSG_TYPE_SMS_WAPPUSH:
*type = MESSAGES_TYPE_SMS_PUSH;
break;
+//LCOV_EXCL_STOP
case MSG_TYPE_SMS:
case MSG_TYPE_SMS_MWI:
case MSG_TYPE_SMS_SYNCML:
case MSG_TYPE_MMS_JAVA:
*type = MESSAGES_TYPE_MMS;
break;
+//LCOV_EXCL_START
default:
*type = MESSAGES_TYPE_UNKNOWN;
break;
+//LCOV_EXCL_STOP
}
return MESSAGES_ERROR_NONE;
return MESSAGES_ERROR_NONE;
}
+//LCOV_EXCL_START
void _messages_sent_mediator_cb(msg_handle_t handle, msg_struct_t pStatus, void *user_param)
{
messages_sending_result_e ret;
free(_msg);
}
}
+//LCOV_EXCL_STOP
int messages_set_message_incoming_cb(messages_service_h svc, messages_incoming_cb callback, void *user_data)
{
int _messages_error_converter(int err, const char *func, int line)
{
switch (err) {
+//LCOV_EXCL_START
case MSG_ERR_NULL_POINTER:
LOGE("[%s:%d] NULL_POINTER(0x%08x) : Error from internal Messaging F/W ret: %d.", func, line, MESSAGES_ERROR_INVALID_PARAMETER, err);
return MESSAGES_ERROR_INVALID_PARAMETER;
case MSG_ERR_PERMISSION_DENIED:
return MESSAGES_ERROR_PERMISSION_DENIED;
-
+//LCOV_EXCL_STOP
case MSG_SUCCESS:
return MESSAGES_ERROR_NONE;
-
+//LCOV_EXCL_START
default:
LOGE("[%s:%d] OPERATION_FAILED(0x%08x) : Error from internal Messaging F/W ret: %d.", func, line, MESSAGES_ERROR_OPERATION_FAILED, err);
return MESSAGES_ERROR_OPERATION_FAILED;
-
+//LCOV_EXCL_STOP
}
}
#endif
#define LOG_TAG "CAPI_MESSAGING"
+//LCOV_EXCL_START
void _messages_push_incoming_mediator_cb(msg_handle_t handle, const char *push_header, const char *push_body, int push_body_len, void *user_param)
{
messages_push_incoming_callback_s *_cb = (messages_push_incoming_callback_s *) user_param;
if (_cb && _cb->callback)
((messages_push_incoming_cb) _cb->callback) (push_header, push_body, push_body_len, _cb->user_data);
}
+//LCOV_EXCL_STOP
int messages_push_add_incoming_cb(messages_service_h service, const char *app_id, messages_push_incoming_cb callback, void *user_data)
{