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 958:9da2140ecec8, committed 2015-11-26
- Comitter:
- rgrover1
- Date:
- Thu Nov 26 12:52:33 2015 +0000
- Parent:
- 957:15f5e9046dde
- Child:
- 959:d99a4565f872
- Commit message:
- Synchronized with git rev acf4467c
Author: Vincent Coubard
Replace callbacks with function pointer into FunctionPointer object
Changed in this revision
| ble/ServiceDiscovery.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/ble/ServiceDiscovery.h Thu Nov 26 12:52:33 2015 +0000
+++ b/ble/ServiceDiscovery.h Thu Nov 26 12:52:33 2015 +0000
@@ -38,7 +38,7 @@
* framework. The application can safely make a persistent shallow-copy of
* this object to work with the service beyond the callback.
*/
- typedef void (*ServiceCallback_t)(const DiscoveredService *);
+ typedef FunctionPointerWithContext<const DiscoveredService *> ServiceCallback_t;
/**
* Callback type for when a matching characteristic is found during service-
@@ -48,12 +48,12 @@
* framework. The application can safely make a persistent shallow-copy of
* this object to work with the characteristic beyond the callback.
*/
- typedef void (*CharacteristicCallback_t)(const DiscoveredCharacteristic *);
+ typedef FunctionPointerWithContext<const DiscoveredCharacteristic *> CharacteristicCallback_t;
/**
* Callback type for when serviceDiscovery terminates.
*/
- typedef void (*TerminationCallback_t)(Gap::Handle_t connectionHandle);
+ typedef FunctionPointerWithContext<Gap::Handle_t> TerminationCallback_t;
public:
/**
