mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Fixed build issues with platform helper
This commit is contained in:
parent
a782ee9098
commit
95ead0586a
2 changed files with 13 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue