Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblinphone
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
22
Merge Requests
22
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
liblinphone
Commits
8ee8885d
Commit
8ee8885d
authored
Oct 05, 2017
by
Sylvain Berfini
🎩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue with string not being cached in C wrapper
parent
fefbec92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
c-chat-message.cpp
src/c-wrapper/api/c-chat-message.cpp
+3
-1
No files found.
src/c-wrapper/api/c-chat-message.cpp
View file @
8ee8885d
...
...
@@ -46,6 +46,7 @@ L_DECLARE_C_OBJECT_IMPL_WITH_XTORS(ChatMessage,
LinphoneAddress
*
to
;
// cache for shared_ptr<Address>
LinphoneChatMessageStateChangedCb
message_state_changed_cb
;
void
*
message_state_changed_user_data
;
mutable
string
contentTypeCache
;
)
static
void
_linphone_chat_message_constructor
(
LinphoneChatMessage
*
msg
)
{
...
...
@@ -318,7 +319,8 @@ void * linphone_chat_message_get_message_state_changed_cb_user_data(LinphoneChat
// =============================================================================
const
char
*
linphone_chat_message_get_content_type
(
LinphoneChatMessage
*
msg
)
{
return
L_STRING_TO_C
(
L_GET_PRIVATE_FROM_C_OBJECT
(
msg
)
->
getContentType
().
asString
());
msg
->
contentTypeCache
=
L_GET_PRIVATE_FROM_C_OBJECT
(
msg
)
->
getContentType
().
asString
();
return
L_STRING_TO_C
(
msg
->
contentTypeCache
);
}
void
linphone_chat_message_set_content_type
(
LinphoneChatMessage
*
msg
,
const
char
*
content_type
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment