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
95ead058
Commit
95ead058
authored
Oct 19, 2017
by
Sylvain Berfini
🐮
Browse files
Fixed build issues with platform helper
parent
a782ee90
Changes
2
Hide whitespace changes
Inline
Side-by-side
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
);
virtual
void
setDnsServers
();
virtual
void
acquireWifiLock
();
virtual
void
releaseWifiLock
();
virtual
void
acquireMcastLock
();
virtual
void
releaseMcastLock
();
virtual
void
acquireCpuLock
();
virtual
void
releaseCpuLock
();
void
setDnsServers
()
override
;
void
acquireWifiLock
()
override
;
void
releaseWifiLock
()
override
;
void
acquireMcastLock
()
override
;
void
releaseMcastLock
()
override
;
void
acquireCpuLock
()
override
;
void
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