Bike service
Fork of BLE_API by
Diff: ble/ServiceDiscovery.h
- Revision:
- 1052:b55e1ad3e1b3
- Parent:
- 1048:efb29faf12fc
- Child:
- 1062:a3fd424b73ca
diff -r 62b44b3be31b -r b55e1ad3e1b3 ble/ServiceDiscovery.h --- a/ble/ServiceDiscovery.h Mon Jan 11 08:51:30 2016 +0000 +++ b/ble/ServiceDiscovery.h Mon Jan 11 08:51:31 2016 +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: /**