BLE_API for nRF51
Fork of BLE_API by
Diff: ble/ServiceDiscovery.h
- Revision:
- 986:5292837107a3
- Parent:
- 976:043b3bd94ee0
- Child:
- 990:53ac0ac3aa39
--- a/ble/ServiceDiscovery.h Thu Nov 26 12:52:37 2015 +0000 +++ b/ble/ServiceDiscovery.h Thu Nov 26 14:51:21 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 FunctionPointerWithContext<const DiscoveredService *> ServiceCallback_t; + typedef void (*ServiceCallback_t)(const DiscoveredService *); /** * 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 FunctionPointerWithContext<const DiscoveredCharacteristic *> CharacteristicCallback_t; + typedef void (*CharacteristicCallback_t)(const DiscoveredCharacteristic *); /** * Callback type for when serviceDiscovery terminates. */ - typedef FunctionPointerWithContext<Gap::Handle_t> TerminationCallback_t; + typedef void (*TerminationCallback_t)(Gap::Handle_t connectionHandle); public: /**