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
23
Merge Requests
23
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
30dbfe2b
Commit
30dbfe2b
authored
Nov 06, 2017
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add linphone_core_find_chat_room() function for testers.
parent
b8be3fa0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
tester_utils.cpp
coreapi/tester_utils.cpp
+12
-0
tester_utils.h
coreapi/tester_utils.h
+1
-0
No files found.
coreapi/tester_utils.cpp
View file @
30dbfe2b
...
...
@@ -20,6 +20,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "tester_utils.h"
#include "private.h"
#include "chat/chat-room/chat-room.h"
#include "core/core.h"
#include "c-wrapper/c-wrapper.h"
LinphoneVcardContext
*
linphone_core_get_vcard_context
(
const
LinphoneCore
*
lc
)
{
return
lc
->
vcard_context
;
}
...
...
@@ -48,6 +52,14 @@ bctbx_list_t **linphone_core_get_call_logs_attribute(LinphoneCore *lc) {
return
&
lc
->
call_logs
;
}
LinphoneChatRoom
*
linphone_core_find_chat_room
(
const
LinphoneCore
*
lc
,
const
LinphoneAddress
*
addr
)
{
const
LinphonePrivate
::
Address
*
cppAddr
=
L_GET_CPP_PTR_FROM_C_OBJECT
(
addr
);
std
::
shared_ptr
<
LinphonePrivate
::
ChatRoom
>
cr
=
lc
->
cppCore
->
findChatRoom
(
*
cppAddr
);
if
(
!
cr
)
return
nullptr
;
return
L_GET_C_BACK_PTR
(
cr
);
}
void
linphone_core_cbs_set_auth_info_requested
(
LinphoneCoreCbs
*
cbs
,
LinphoneCoreAuthInfoRequestedCb
cb
)
{
cbs
->
vtable
->
auth_info_requested
=
cb
;
}
...
...
coreapi/tester_utils.h
View file @
30dbfe2b
...
...
@@ -94,6 +94,7 @@ LINPHONE_PUBLIC LinphoneQualityReporting *linphone_call_log_get_quality_reportin
LINPHONE_PUBLIC
reporting_session_report_t
**
linphone_quality_reporting_get_reports
(
LinphoneQualityReporting
*
qreporting
);
LINPHONE_PUBLIC
bctbx_list_t
*
linphone_chat_room_get_transient_messages
(
const
LinphoneChatRoom
*
cr
);
LINPHONE_PUBLIC
LinphoneChatRoom
*
linphone_core_find_chat_room
(
const
LinphoneCore
*
lc
,
const
LinphoneAddress
*
addr
);
LINPHONE_PUBLIC
MSList
*
linphone_core_fetch_friends_from_db
(
LinphoneCore
*
lc
,
LinphoneFriendList
*
list
);
LINPHONE_PUBLIC
MSList
*
linphone_core_fetch_friends_lists_from_db
(
LinphoneCore
*
lc
);
...
...
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