Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
9b68f188
Commit
9b68f188
authored
Aug 28, 2014
by
jehan
Browse files
keep linphone_core_get_chat_room(LinphoneCore *lc, const LinphoneAddress *addr) with const param
parent
9f155f9c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
coreapi/chat.c
coreapi/chat.c
+2
-2
coreapi/linphonecore.h
coreapi/linphonecore.h
+1
-1
tester/message_tester.c
tester/message_tester.c
+1
-1
No files found.
coreapi/chat.c
View file @
9b68f188
...
...
@@ -342,10 +342,10 @@ LinphoneChatRoom * linphone_core_create_chat_room(LinphoneCore *lc, const char *
* @param addr a linphone address.
* @returns #LinphoneChatRoom where messaging can take place.
**/
LinphoneChatRoom
*
linphone_core_get_chat_room
(
LinphoneCore
*
lc
,
LinphoneAddress
*
addr
){
LinphoneChatRoom
*
linphone_core_get_chat_room
(
LinphoneCore
*
lc
,
const
LinphoneAddress
*
addr
){
LinphoneChatRoom
*
ret
=
_linphone_core_get_chat_room
(
lc
,
addr
);
if
(
!
ret
)
{
ret
=
_linphone_core_create_chat_room
(
lc
,
addr
);
ret
=
_linphone_core_create_chat_room
(
lc
,
linphone_address_clone
(
addr
)
);
}
return
ret
;
}
...
...
coreapi/linphonecore.h
View file @
9b68f188
...
...
@@ -1374,7 +1374,7 @@ typedef void (*LinphoneChatMessageStateChangedCb)(LinphoneChatMessage* msg,Linph
LINPHONE_PUBLIC
void
linphone_core_set_chat_database_path
(
LinphoneCore
*
lc
,
const
char
*
path
);
LINPHONE_PUBLIC
LinphoneChatRoom
*
linphone_core_create_chat_room
(
LinphoneCore
*
lc
,
const
char
*
to
);
LINPHONE_PUBLIC
LinphoneChatRoom
*
linphone_core_get_or_create_chat_room
(
LinphoneCore
*
lc
,
const
char
*
to
);
LINPHONE_PUBLIC
LinphoneChatRoom
*
linphone_core_get_chat_room
(
LinphoneCore
*
lc
,
LinphoneAddress
*
addr
);
LINPHONE_PUBLIC
LinphoneChatRoom
*
linphone_core_get_chat_room
(
LinphoneCore
*
lc
,
const
LinphoneAddress
*
addr
);
LINPHONE_PUBLIC
LinphoneChatRoom
*
linphone_core_get_chat_room_from_uri
(
LinphoneCore
*
lc
,
const
char
*
to
);
LINPHONE_PUBLIC
void
linphone_core_disable_chat
(
LinphoneCore
*
lc
,
LinphoneReason
deny_reason
);
LINPHONE_PUBLIC
void
linphone_core_enable_chat
(
LinphoneCore
*
lc
);
...
...
tester/message_tester.c
View file @
9b68f188
...
...
@@ -257,7 +257,7 @@ static void text_message_with_privacy(void) {
linphone_core_get_default_proxy
(
pauline
->
lc
,
&
pauline_proxy
);
linphone_proxy_config_set_privacy
(
pauline_proxy
,
LinphonePrivacyId
);
CU_ASSERT_PTR_NULL
(
linphone_core_get_chat_room
(
marie
->
lc
,
pauline
->
identity
));
CU_ASSERT_PTR_
NOT_
NULL
(
linphone_core_get_chat_room
(
marie
->
lc
,
pauline
->
identity
));
linphone_chat_room_send_message
(
chat_room
,
"Bla bla bla bla"
);
CU_ASSERT_TRUE
(
wait_for
(
pauline
->
lc
,
marie
->
lc
,
&
marie
->
stat
.
number_of_LinphoneMessageReceived
,
1
));
...
...
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