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
21
Merge Requests
21
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
95ead058
Commit
95ead058
authored
Oct 19, 2017
by
Sylvain Berfini
🎩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed build issues with platform helper
parent
a782ee90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
linphonecore.c
coreapi/linphonecore.c
+6
-2
platform-helpers.h
coreapi/platform-helpers.h
+7
-7
No files found.
coreapi/linphonecore.c
View file @
95ead058
...
...
@@ -2269,16 +2269,20 @@ static void linphone_core_init(LinphoneCore * lc, LinphoneCoreCbs *cbs, LpConfig
lc
->
group_chat_rooms
=
bctbx_mmap_cchar_new
();
}
#ifdef __ANDROID__
static
void
_linphone_core_set_platform_helpers
(
LinphoneCore
*
lc
,
LinphonePrivate
::
PlatformHelpers
*
ph
){
if
(
lc
->
platform_helper
)
delete
getPlatformHelpers
(
lc
);
lc
->
platform_helper
=
ph
;
}
static
void
_linphone_core_set_system_context
(
LinphoneCore
*
lc
,
void
*
system_context
){
#ifdef __ANDROID__
_linphone_core_set_platform_helpers
(
lc
,
LinphonePrivate
::
createAndroidPlatformHelpers
(
lc
,
system_context
));
#endif
}
#else
static
void
_linphone_core_set_system_context
(
LinphoneCore
*
lc
,
void
*
system_context
){
}
#endif
LinphoneCore
*
_linphone_core_new_with_config
(
LinphoneCoreCbs
*
cbs
,
struct
_LpConfig
*
config
,
void
*
userdata
,
void
*
system_context
)
{
LinphoneCore
*
core
=
belle_sip_object_new
(
LinphoneCore
);
...
...
coreapi/platform-helpers.h
View file @
95ead058
...
...
@@ -47,13 +47,13 @@ class PlatformHelpers{
class
StubbedPlatformHelpers
:
public
PlatformHelpers
{
public
:
StubbedPlatformHelpers
(
LinphoneCore
*
lc
);
v
irtual
void
setDnsServers
()
;
v
irtual
void
acquireWifiLock
()
;
v
irtual
void
releaseWifiLock
()
;
v
irtual
void
acquireMcastLock
()
;
v
irtual
void
releaseMcastLock
()
;
v
irtual
void
acquireCpuLock
()
;
v
irtual
void
releaseCpuLock
()
;
v
oid
setDnsServers
()
override
;
v
oid
acquireWifiLock
()
override
;
v
oid
releaseWifiLock
()
override
;
v
oid
acquireMcastLock
()
override
;
v
oid
releaseMcastLock
()
override
;
v
oid
acquireCpuLock
()
override
;
v
oid
releaseCpuLock
()
override
;
virtual
~
StubbedPlatformHelpers
();
};
...
...
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