Skip to content

Commit

Permalink
Merge pull request #174 from andresag01/fix_onshutdown_callback
Browse files Browse the repository at this point in the history
Change onShutdown(obj, func) definition
  • Loading branch information
pan- committed Jan 22, 2016
2 parents 20da58f + d279f7a commit c69ce38
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ble/Gap.h
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,7 @@ class Gap {
* invoked in response to a shutdown event.
*/
template <typename T>
void onShutdown(T *objPtr, void (T::*memberPtr)(void)) {
void onShutdown(T *objPtr, void (T::*memberPtr)(const Gap *)) {
shutdownCallChain.add(objPtr, memberPtr);
}

Expand Down
2 changes: 1 addition & 1 deletion ble/GattClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ class GattClient {
* invoked.
*/
template <typename T>
void onShutdown(T *objPtr, void (T::*memberPtr)(void)) {
void onShutdown(T *objPtr, void (T::*memberPtr)(const GattClient *)) {
shutdownCallChain.add(objPtr, memberPtr);
}

Expand Down
2 changes: 1 addition & 1 deletion ble/GattServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ class GattServer {
* invoked.
*/
template <typename T>
void onShutdown(T *objPtr, void (T::*memberPtr)(void)) {
void onShutdown(T *objPtr, void (T::*memberPtr)(const GattServer *)) {
shutdownCallChain.add(objPtr, memberPtr);
}

Expand Down
2 changes: 1 addition & 1 deletion ble/SecurityManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class SecurityManager {
shutdownCallChain.add(callback);
}
template <typename T>
void onShutdown(T *objPtr, void (T::*memberPtr)(void)) {
void onShutdown(T *objPtr, void (T::*memberPtr)(const SecurityManager *)) {
shutdownCallChain.add(objPtr, memberPtr);
}

Expand Down

0 comments on commit c69ce38

Please sign in to comment.