Commit 95ead058 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Fixed build issues with platform helper

parent a782ee90
...@@ -2269,16 +2269,20 @@ static void linphone_core_init(LinphoneCore * lc, LinphoneCoreCbs *cbs, LpConfig ...@@ -2269,16 +2269,20 @@ static void linphone_core_init(LinphoneCore * lc, LinphoneCoreCbs *cbs, LpConfig
lc->group_chat_rooms = bctbx_mmap_cchar_new(); lc->group_chat_rooms = bctbx_mmap_cchar_new();
} }
#ifdef __ANDROID__
static void _linphone_core_set_platform_helpers(LinphoneCore *lc, LinphonePrivate::PlatformHelpers *ph){ static void _linphone_core_set_platform_helpers(LinphoneCore *lc, LinphonePrivate::PlatformHelpers *ph){
if (lc->platform_helper) delete getPlatformHelpers(lc); if (lc->platform_helper) delete getPlatformHelpers(lc);
lc->platform_helper = ph; lc->platform_helper = ph;
} }
static void _linphone_core_set_system_context(LinphoneCore *lc, void *system_context){ 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)); _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 *_linphone_core_new_with_config(LinphoneCoreCbs *cbs, struct _LpConfig *config, void *userdata, void *system_context) {
LinphoneCore *core = belle_sip_object_new(LinphoneCore); LinphoneCore *core = belle_sip_object_new(LinphoneCore);
......
...@@ -47,13 +47,13 @@ class PlatformHelpers{ ...@@ -47,13 +47,13 @@ class PlatformHelpers{
class StubbedPlatformHelpers : public PlatformHelpers{ class StubbedPlatformHelpers : public PlatformHelpers{
public: public:
StubbedPlatformHelpers(LinphoneCore *lc); StubbedPlatformHelpers(LinphoneCore *lc);
virtual void setDnsServers(); void setDnsServers() override;
virtual void acquireWifiLock(); void acquireWifiLock() override;
virtual void releaseWifiLock(); void releaseWifiLock() override;
virtual void acquireMcastLock(); void acquireMcastLock() override;
virtual void releaseMcastLock(); void releaseMcastLock() override;
virtual void acquireCpuLock(); void acquireCpuLock() override;
virtual void releaseCpuLock(); void releaseCpuLock() override;
virtual ~StubbedPlatformHelpers(); virtual ~StubbedPlatformHelpers();
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment