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 */
shutdownCallChain.call(this);
shutdownCallChain.clear();
securitySetupInitiatedCallback = NULL;
securitySetupCompletedCallback = NULL;
linkSecuredCallback = NULL;
securityContextStoredCallback = NULL;
passkeyDisplayCallback = NULL;
_evt = SecurityManagerEventBlock();
return BLE_ERROR_NONE;
}

View File

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