Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
Revision 337:e7c2eb38f5cc, committed 2015-04-15
- Comitter:
- rgrover1
- Date:
- Wed Apr 15 09:05:11 2015 +0100
- Parent:
- 336:896e159d3af6
- Child:
- 338:fd32ec0ebd98
- Commit message:
- Synchronized with git rev 89b44560
Author: Rohit Grover
switch access privileges for several of the callback related members to 'protected'
it should be possible for a stack-specific implementation to override the defaults.
Changed in this revision
| public/Gap.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/public/Gap.h Wed Apr 15 09:05:10 2015 +0100
+++ b/public/Gap.h Wed Apr 15 09:05:11 2015 +0100
@@ -101,7 +101,7 @@
virtual ble_error_t setAppearance(uint16_t appearance) = 0;
virtual ble_error_t getAppearance(uint16_t *appearanceP) = 0;
-private:
+protected:
/* Event callback handlers */
void setOnTimeout(EventCallback_t callback) {onTimeout = callback;}
void setOnConnection(ConnectionEventCallback_t callback) {onConnection = callback;}
@@ -128,6 +128,7 @@
template<typename T>
void addToDisconnectionCallChain(T *tptr, void (T::*mptr)(void)) {disconnectionCallChain.add(tptr, mptr);}
+private:
GapState_t getState(void) const {
return state;
}
@@ -170,7 +171,7 @@
protected:
GapState_t state;
-private:
+protected:
EventCallback_t onTimeout;
ConnectionEventCallback_t onConnection;
DisconnectionEventCallback_t onDisconnection;
