-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add onShutdown to register callbacks
Add an onShutdown() function to Gap, GattClient, GattServer and SecurityManager. The callbacks are added to a private callback chain in each of the instances. The callbacks will be executed inside each object's reset() function BEFORE the state of the instance is cleared. The developers of the platform-specific implementation must call the parent class' reset() function for the callbacks to be executed. Finally, an onShutdown() function that returns the shutdown callchain is added to allow detaching callbacks.
- Loading branch information
Andres Amaya Garcia
authored and
Andres Amaya Garcia
committed
Dec 16, 2015
1 parent
022c37c
commit 0781293
Showing
4 changed files
with
182 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters