From 467ec300e62e2f47595c835f75d447513919416f Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Wed, 1 Mar 2017 16:48:41 +0100 Subject: [PATCH] Fix API by adding missing const keywords. --- coreapi/chat.c | 4 ++-- include/linphone/chat.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/coreapi/chat.c b/coreapi/chat.c index b920b860a..2f0bf05b8 100644 --- a/coreapi/chat.c +++ b/coreapi/chat.c @@ -1514,11 +1514,11 @@ void linphone_chat_message_set_content_type(LinphoneChatMessage *msg, const char msg->content_type = content_type ? ms_strdup(content_type) : NULL; } -bool_t linphone_chat_message_is_file_transfer(LinphoneChatMessage *msg) { +bool_t linphone_chat_message_is_file_transfer(const LinphoneChatMessage *msg) { return is_file_transfer(msg->content_type); } -bool_t linphone_chat_message_is_text(LinphoneChatMessage *msg) { +bool_t linphone_chat_message_is_text(const LinphoneChatMessage *msg) { return is_text(msg->content_type); } diff --git a/include/linphone/chat.h b/include/linphone/chat.h index ab1cd6a71..fc78c9ce9 100644 --- a/include/linphone/chat.h +++ b/include/linphone/chat.h @@ -395,14 +395,14 @@ LINPHONE_PUBLIC void linphone_chat_message_set_content_type(LinphoneChatMessage * @param[in] message LinphoneChatMessage object * @return Whether or not the message is a file tranfer */ -LINPHONE_PUBLIC bool_t linphone_chat_message_is_file_transfer(LinphoneChatMessage *message); +LINPHONE_PUBLIC bool_t linphone_chat_message_is_file_transfer(const LinphoneChatMessage *message); /** * Return whether or not a chat message is a text. * @param[in] message LinphoneChatMessage object * @return Whether or not the message is a text */ -LINPHONE_PUBLIC bool_t linphone_chat_message_is_text(LinphoneChatMessage *message); +LINPHONE_PUBLIC bool_t linphone_chat_message_is_text(const LinphoneChatMessage *message); /** * Get if a chat message is to be stored.