summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyeonghun Lee <kh9090.lee@samsung.com>2016-03-28 18:24:25 +0900
committerKyeonghun Lee <kh9090.lee@samsung.com>2016-06-16 13:09:06 +0900
commitbb7edf1901b42aafd0db548fdcb8a3bdee36a512 (patch)
treec0047f6e19ec17cf197f5e5a92075e140bfa87c2 /src
parented613fcee2dcf99f14f564add3b89d220b36baba (diff)
downloadmessages-bb7edf1901b42aafd0db548fdcb8a3bdee36a512.tar.gz
messages-bb7edf1901b42aafd0db548fdcb8a3bdee36a512.tar.bz2
messages-bb7edf1901b42aafd0db548fdcb8a3bdee36a512.zip
Change-Id: I730826531737a9d9a58248144cf29aa281fa3832 Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/messages.c13
-rw-r--r--src/messages_push.c2
2 files changed, 12 insertions, 3 deletions
diff --git a/src/messages.c b/src/messages.c
index 333a640..140e74c 100644
--- a/src/messages.c
+++ b/src/messages.c
@@ -255,6 +255,7 @@ int messages_get_message_type(messages_message_h msg, messages_message_type_e *
return ERROR_CONVERT(ret);
switch (msgType) {
+//LCOV_EXCL_START
case MSG_TYPE_SMS_CB:
case MSG_TYPE_SMS_JAVACB:
*type = MESSAGES_TYPE_SMS_CB;
@@ -262,6 +263,7 @@ int messages_get_message_type(messages_message_h msg, messages_message_type_e *
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:
@@ -273,9 +275,11 @@ int messages_get_message_type(messages_message_h msg, messages_message_type_e *
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;
@@ -732,6 +736,7 @@ int messages_foreach_message(messages_service_h svc, messages_message_box_e mbox
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;
@@ -796,6 +801,7 @@ void _messages_incoming_mediator_cb(msg_handle_t handle, msg_struct_t msg, void
free(_msg);
}
}
+//LCOV_EXCL_STOP
int messages_set_message_incoming_cb(messages_service_h svc, messages_incoming_cb callback, void *user_data)
{
@@ -1855,6 +1861,7 @@ int _messages_convert_recipient_to_fw(messages_recipient_type_e type)
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;
@@ -1889,14 +1896,14 @@ int _messages_error_converter(int err, const char *func, int line)
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
}
}
diff --git a/src/messages_push.c b/src/messages_push.c
index 4283eb4..743c9d6 100644
--- a/src/messages_push.c
+++ b/src/messages_push.c
@@ -39,6 +39,7 @@
#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;
@@ -46,6 +47,7 @@ void _messages_push_incoming_mediator_cb(msg_handle_t handle, const char *push_h
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)
{