class in header

pull/6932/head
paul-szczepanek-arm 2018-04-10 16:42:43 +01:00
parent a2484b63b0
commit 70067105d6
2 changed files with 11 additions and 11 deletions

View File

@ -154,6 +154,17 @@ private:
::BLE::InstanceID_t instanceID;
mutable pal::SimpleEventQueue _event_queue;
class SigningEventMonitorProxy : public pal::SigningEventMonitor {
public:
SigningEventMonitorProxy(BLE &ble) : _ble(ble) { }
virtual void set_signing_event_handler(pal::SigningEventMonitor::EventHandler *handler) {
_ble.getGattClient().set_signing_event_handler(handler);
_ble.getGattServer().set_signing_event_handler(handler);
}
private:
BLE &_ble;
};
};
} // namespace cordio

View File

@ -209,17 +209,6 @@ SecurityManager& BLE::getSecurityManager()
const SecurityManager& BLE::getSecurityManager() const
{
class SigningEventMonitorProxy : public pal::SigningEventMonitor {
public:
SigningEventMonitorProxy(BLE &ble) : _ble(ble) { }
virtual void set_signing_event_handler(pal::SigningEventMonitor::EventHandler *handler) {
_ble.getGattClient().set_signing_event_handler(handler);
_ble.getGattServer().set_signing_event_handler(handler);
}
private:
BLE &_ble;
};
static pal::MemorySecurityDb m_db;
pal::vendor::cordio::CordioSecurityManager &m_pal = pal::vendor::cordio::CordioSecurityManager::get_security_manager();