moving cbs to evt block

pull/6188/head
paul-szczepanek-arm 2017-12-22 16:41:45 +00:00
parent 6fd1859881
commit ed405e1849
2 changed files with 2 additions and 7 deletions

View File

@ -318,12 +318,7 @@ public:
/* Notify that the instance is about to shutdown */ /* Notify that the instance is about to shutdown */
shutdownCallChain.call(this); shutdownCallChain.call(this);
shutdownCallChain.clear(); shutdownCallChain.clear();
_evt = SecurityManagerEventBlock();
securitySetupInitiatedCallback = NULL;
securitySetupCompletedCallback = NULL;
linkSecuredCallback = NULL;
securityContextStoredCallback = NULL;
passkeyDisplayCallback = NULL;
return BLE_ERROR_NONE; return BLE_ERROR_NONE;
} }

View File

@ -77,7 +77,7 @@ struct boonded_list_t {
class SecurityManagerPal : private mbed::NonCopyable<SecurityManagerPal> { class SecurityManagerPal : private mbed::NonCopyable<SecurityManagerPal> {
public: public:
SecurityManagerPal(SecurityManagerEventHandler& sme) : _sme(sme) { }; SecurityManagerPal(SecurityManagerEventBlock& evt) : _evt(evt) { };
virtual ble_error_t initialize() = 0; virtual ble_error_t initialize() = 0;
virtual ble_error_t terminate() = 0; virtual ble_error_t terminate() = 0;