summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSang-Hun Chung <sanghunchung@review.tizen.org>2015-12-21 00:49:57 -0800
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>2015-12-21 00:49:57 -0800
commit2dd8fb09404f336db1cb22f09532fa4bd2f12a3a (patch)
tree0d739a0f2586c3a1b0aaef7b56d2995df2b0ad45 /include
parent5dade2d5f48d642fb3f84a5017dc3add5598a7b7 (diff)
parent8dbef3f5ff22ff48e219ee40d507102d69194a69 (diff)
downloadmsg-service-2dd8fb09404f336db1cb22f09532fa4bd2f12a3a.tar.gz
msg-service-2dd8fb09404f336db1cb22f09532fa4bd2f12a3a.tar.bz2
msg-service-2dd8fb09404f336db1cb22f09532fa4bd2f12a3a.zip
Diffstat (limited to 'include')
-rwxr-xr-xinclude/framework/MsgCmdHandler.h2
-rwxr-xr-xinclude/mapi/msg.h15
-rwxr-xr-xinclude/mapi/msg_private.h30
3 files changed, 24 insertions, 23 deletions
diff --git a/include/framework/MsgCmdHandler.h b/include/framework/MsgCmdHandler.h
index ffe0462..4082cfa 100755
--- a/include/framework/MsgCmdHandler.h
+++ b/include/framework/MsgCmdHandler.h
@@ -108,4 +108,4 @@ int MsgUpdateIMSIHandler(const MSG_CMD_S *pCmd, char **ppEvent);
#ifdef FEATURE_SMS_CDMA
int MsgCheckUniquenessHandler(const MSG_CMD_S *pCmd, char **ppEvent);
#endif
-#endif // MSG_CMD_HANDLER_H
+#endif /* MSG_CMD_HANDLER_H */
diff --git a/include/mapi/msg.h b/include/mapi/msg.h
index ac6fa8d..d824233 100755
--- a/include/mapi/msg.h
+++ b/include/mapi/msg.h
@@ -332,7 +332,7 @@ int msg_get_list_handle(msg_struct_t msg_struct_handle, int field, void **value)
*
* @param[in] msg_struct_handle A pointer of message structure type
* @param[in] field The enumeration to get a value of specific field
- * @param[out] value The requested integer value
+ * @param[in] value The requested integer value
*
* @return @c 0 on success,
* otherwise a negative error value
@@ -356,7 +356,7 @@ int msg_set_int_value(msg_struct_t msg_struct_handle, int field, int value);
*
* @param[in] msg_struct_handle A pointer of message structure type
* @param[in] field The enumeration to get a value of specific field
- * @param[out] value The requested string
+ * @param[in] value The requested string
* @param[in] size The requested size of string to set
*
* @return @c 0 on success,
@@ -365,11 +365,12 @@ int msg_set_int_value(msg_struct_t msg_struct_handle, int field, int value);
* @retval MSG_SUCCESS Successfully done
* @retval MSG_ERR_NULL_POINTER Input parameter (msg_struct_handle/value) is NULL
* @retval MSG_ERR_INVALID_PARAMETER Input parameter (field) is not valid
+ * @retval MSG_ERR_MEMORY_ERROR Memory error
* @retval MSG_ERR_NOT_SUPPORTED Not supported
*
*/
-int msg_set_str_value(msg_struct_t msg_struct_handle, int field, char *value, int size);
+int msg_set_str_value(msg_struct_t msg_struct_handle, int field, const char *value, int size);
/**
@@ -383,7 +384,7 @@ int msg_set_str_value(msg_struct_t msg_struct_handle, int field, char *value, in
*
* @param[in] msg_struct_handle A pointer of message structure type
* @param[in] field The enumeration to get a value of specific field
- * @param[out] value The requested boolean value
+ * @param[in] value The requested boolean value
*
* @return @c 0 on success,
* otherwise a negative error value
@@ -407,7 +408,7 @@ int msg_set_bool_value(msg_struct_t msg_struct_handle, int field, bool value);
*
* @param[in] msg_struct_handle A pointer of message structure type
* @param[in] field The enumeration to get a value of specific field
- * @param[out] value The requested structure handle to set
+ * @param[in] value The requested structure handle to set
*
* @return @c 0 on success,
* otherwise a negative error value
@@ -431,7 +432,7 @@ int msg_set_struct_handle(msg_struct_t msg_struct_handle, int field, msg_struct_
*
* @param[in] msg_struct_handle A pointer of message structure type
* @param[in] field The enumeration to get a value of specific field
- * @param[out] value The requested list handle to set
+ * @param[in] value The requested list handle to set
*
* @return @c 0 on success,
* otherwise a negative error value
@@ -476,7 +477,7 @@ int msg_get_mms_struct(msg_struct_t msg_struct_handle, msg_struct_t mms_struct_h
* @remarks Use valid structure handle.
*
* @param[in] msg_struct_handle A pointer of message structure type
- * @param[out] mms_struct_handle The MMS structure handle to set
+ * @param[in] mms_struct_handle The MMS structure handle to set
*
* @return @c 0 on success,
* otherwise a negative error value
diff --git a/include/mapi/msg_private.h b/include/mapi/msg_private.h
index 616156f..a24287e 100755
--- a/include/mapi/msg_private.h
+++ b/include/mapi/msg_private.h
@@ -71,7 +71,7 @@ int msg_message_get_list_hnd(void *data, int field, void **value);
int msg_message_set_int_value(void *data, int field, int value);
int msg_message_set_bool_value(void *data, int field, bool value);
-int msg_message_set_str_value(void *data, int field, char *value, int size);
+int msg_message_set_str_value(void *data, int field, const char *value, int size);
int msg_message_set_struct_hnd(void *data, int field, void *value);
void msg_message_copy_message(MSG_MESSAGE_HIDDEN_S *pSrc, MSG_MESSAGE_HIDDEN_S *pDst);
@@ -90,7 +90,7 @@ int msg_get_filter_info_int(void *filter, int field, int *value);
int msg_get_filter_info_str(void *filter, int field, char *value, int size);
int msg_set_filter_info_bool(void *filter, int field, bool value);
int msg_set_filter_info_int(void *filter, int field, int value);
-int msg_set_filter_info_str(void *filter, int field, char *value, int size);
+int msg_set_filter_info_str(void *filter, int field, const char *value, int size);
/* mms */
@@ -105,7 +105,7 @@ int msg_mms_get_struct_handle(msg_struct_s *msg_struct, int field, msg_struct_s
int msg_mms_get_list_handle(msg_struct_s *msg_struct, int field, msg_list_handle_t *value);
int msg_mms_set_int_value(msg_struct_s *msg_struct, int field, int value);
-int msg_mms_set_str_value(msg_struct_s *msg_struct, int field, char *value, int size);
+int msg_mms_set_str_value(msg_struct_s *msg_struct, int field, const char *value, int size);
int msg_mms_set_bool_value(msg_struct_s *msg_struct, int field, bool value);
int msg_mms_set_struct_handle(msg_struct_s *msg_struct, int field, msg_struct_s *value);
@@ -122,7 +122,7 @@ int msg_setting_get_bool_value(msg_struct_s *msg_struct, int field, bool *value)
int msg_setting_get_list_handle(msg_struct_s *msg_struct, int field, void **value);
int msg_setting_set_int_value(msg_struct_s *msg_struct, int field, int value);
-int msg_setting_set_str_value(msg_struct_s *msg_struct, int field, char *value, int size);
+int msg_setting_set_str_value(msg_struct_s *msg_struct, int field, const char *value, int size);
int msg_setting_set_bool_value(msg_struct_s *msg_struct, int field, bool value);
int msg_get_smsc_opt_int(void *smsc_opt, int field, int *value);
@@ -132,7 +132,7 @@ int msg_get_smsc_opt_list(void *smsc_opt, int field, void **value);
int msg_get_smsc_info_int(void *smsc_info, int field, int *value);
int msg_set_smsc_info_int(void *smsc_info, int field, int value);
int msg_get_smsc_info_str(void *smsc_info, int field, char *value, int size);
-int msg_set_smsc_info_str(void *smsc_info, int field, char *val, int size);
+int msg_set_smsc_info_str(void *smsc_info, int field, const char *val, int size);
int msg_get_cb_option_int(void *cb_opt, int field, int *value);
int msg_set_cb_option_int(void *cb_opt, int field, int value);
@@ -145,7 +145,7 @@ int msg_set_cb_channel_info_int(void *cb_ch_info, int field, int value);
int msg_get_cb_channel_info_bool(void *cb_ch_info, int field, bool *value);
int msg_set_cb_channel_info_bool(void *cb_ch_info, int field, bool value);
int msg_get_cb_channel_info_str(void *cb_ch_info, int field, char *value, int size);
-int msg_set_cb_channel_info_str(void *cb_ch_info, int field, char *val, int size);
+int msg_set_cb_channel_info_str(void *cb_ch_info, int field, const char *val, int size);
int msg_get_sms_send_opt_int(void *sms_send_opt, int field, int *value);
int msg_set_sms_send_opt_int(void *sms_send_opt, int field, int value);
@@ -170,14 +170,14 @@ int msg_set_push_msg_opt_bool(void *push_msg_opt, int field, bool value);
int msg_get_voice_msg_opt_int(void *voice_msg_opt, int field, int *value);
int msg_set_voice_msg_opt_int(void *voice_msg_opt, int field, int value);
int msg_get_voice_msg_opt_str(void *voice_msg_opt, int field, char *value, int size);
-int msg_set_voice_msg_opt_str(void *voice_msg_opt, int field, char *val, int size);
+int msg_set_voice_msg_opt_str(void *voice_msg_opt, int field, const char *val, int size);
int msg_get_general_opt_int(void *general_opt, int field, int *value);
int msg_set_general_opt_int(void *general_opt, int field, int value);
int msg_get_general_opt_bool(void *general_opt, int field, bool *value);
int msg_set_general_opt_bool(void *general_opt, int field, bool value);
int msg_get_general_opt_str(void *general_opt, int field, char *value, int size);
-int msg_set_general_opt_str(void *general_opt, int field, char *val, int size);
+int msg_set_general_opt_str(void *general_opt, int field, const char *val, int size);
int msg_get_msgsize_opt_int(void *size_opt, int field, int *value);
int msg_set_msgsize_opt_int(void *size_opt, int field, int value);
@@ -185,7 +185,7 @@ int msg_set_msgsize_opt_int(void *size_opt, int field, int value);
/* Wap Push */
int msg_push_config_get_str(void *event_info, int field, char *value, int size);
int msg_push_config_get_bool(void *event_info, int field, bool *value);
-int msg_push_config_set_str(void *event_info, int field, char *value, int size);
+int msg_push_config_set_str(void *event_info, int field, const char *value, int size);
int msg_push_config_set_bool(void *event, int field, bool value);
/* added internal apis for new managed api (storage) */
@@ -229,8 +229,8 @@ int msg_sortrule_set_int(void *sort_info, int field, int value);
int msg_folder_info_set_int(void *folder_info, int field, int value);
int msg_list_condition_set_int(void *condition_info, int field, int value);
int msg_report_status_set_int(void *report_info, int field, int value);
-int msg_folder_info_set_str(void *folder_info, int field, char *value, int size);
-int msg_list_condition_set_str(void *condition_info, int field, char *value, int size);
+int msg_folder_info_set_str(void *folder_info, int field, const char *value, int size);
+int msg_list_condition_set_str(void *condition_info, int field, const char *value, int size);
int msg_sendopt_set_bool(void *send_opt, int field, bool value);
int msg_sortrule_set_bool(void *sort_rule, int field, bool value);
int msg_list_condition_set_bool(void *data, int field, bool value);
@@ -241,9 +241,9 @@ int msg_list_condition_set_struct_handle(msg_struct_s *msg_struct, int field, ms
int msg_address_info_set_int(void *addrinfo, int field, int value);
int msg_mms_sendopt_set_int(void *opt_info, int field, int value);
int msg_reject_message_set_int(void *msg_info, int field, int value);
-int msg_address_info_set_str(void *addr_info, int field, char *value, int size);
-int msg_media_info_set_str(void *media_info, int field, char *value, int size);
-int msg_reject_message_set_str(void *msg_info, int field, char *value, int size);
+int msg_address_info_set_str(void *addr_info, int field, const char *value, int size);
+int msg_media_info_set_str(void *media_info, int field, const char *value, int size);
+int msg_reject_message_set_str(void *msg_info, int field, const char *value, int size);
int msg_mms_sendopt_set_bool(void *option, int field, bool value);
int msg_sms_sendopt_set_bool(void *option, int field, bool value);
@@ -260,5 +260,5 @@ int msg_media_item_get_int(void *data, int field, int *value);
int msg_conversation_get_list_hnd(void *data, int field, void **value);
int msg_multipart_get_str_value(void *data, int field, char *value, int size);
int msg_multipart_get_int_value(void *data, int field, int *value);
-int msg_multipart_set_str_value(void *data, int field, char *value, int size);
+int msg_multipart_set_str_value(void *data, int field, const char *value, int size);
#endif /* MSG_PRIVATE_H_ */