Commit 25620209 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed a few issues with latest commit

parent 19f0ffa8
......@@ -33,7 +33,7 @@ GenericPlatformHelpers::GenericPlatformHelpers (std::shared_ptr<LinphonePrivate:
GenericPlatformHelpers::~GenericPlatformHelpers () {
if (mMonitorTimer) {
if (mCore && mCore->sal) mCore->sal->cancelTimer(mMonitorTimer);
if (getCore()->getCCore() && getCore()->getCCore()->sal) getCore()->getCCore()->sal->cancelTimer(mMonitorTimer);
belle_sip_object_unref(mMonitorTimer);
mMonitorTimer = nullptr;
}
......@@ -107,7 +107,7 @@ void GenericPlatformHelpers::setHttpProxy (string host, int port) {}
void GenericPlatformHelpers::setNetworkReachable (bool reachable) {
mNetworkReachable = reachable;
linphone_core_set_network_reachable_internal(mCore, reachable);
linphone_core_set_network_reachable_internal(getCore()->getCCore(), reachable);
}
......@@ -115,7 +115,7 @@ void GenericPlatformHelpers::onLinphoneCoreStart (bool monitoringEnabled) {
if (!monitoringEnabled) return;
if (!mMonitorTimer) {
mMonitorTimer = mCore->sal->createTimer(
mMonitorTimer = getCore()->getCCore()->sal->createTimer(
monitorTimerExpired,
this,
DefaultMonitorTimeout * 1000,
......
......@@ -25,6 +25,7 @@
#include "linphone/utils/general.h"
#include "core/core-accessor.h"
#include "core/core.h"
// =============================================================================
......@@ -122,8 +123,8 @@ private:
std::string getDownloadPath () override;
};
PlatformHelpers *createAndroidPlatformHelpers (LinphoneCore *lc, void *systemContext);
PlatformHelpers *createIosPlatformHelpers (LinphoneCore *lc, void *systemContext);
PlatformHelpers *createAndroidPlatformHelpers (std::shared_ptr<LinphonePrivate::Core> core, void *systemContext);
PlatformHelpers *createIosPlatformHelpers (std::shared_ptr<LinphonePrivate::Core> core, void *systemContext);
LINPHONE_END_NAMESPACE
......
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