From 93033eca691d06ef563065b27e273f708c60693e Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Thu, 21 May 2015 13:53:20 +0100 Subject: [PATCH] rehome a declaration --- public/Gap.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/public/Gap.h b/public/Gap.h index b17cd7b..a84872c 100644 --- a/public/Gap.h +++ b/public/Gap.h @@ -82,6 +82,16 @@ public: CENTRAL = 0x2, /**< Central Role. */ }; + struct AdvertisementCallbackParams_t { + Address_t peerAddr; + int8_t rssi; + bool isScanResponse; + AdvertisementType_t type; + uint8_t advertisingDataLen; + const uint8_t *advertisingData; + }; + typedef FunctionPointerWithContext AdvertisementReportCallback_t; + enum SecurityMode_t { SECURITY_MODE_NO_ACCESS, SECURITY_MODE_ENCRYPTION_OPEN_LINK, /**< require no protection, open link. */ @@ -159,16 +169,6 @@ public: typedef void (*LinkSecuredCallback_t)(Handle_t handle, SecurityMode_t securityMode); typedef void (*PasskeyDisplayCallback_t)(Handle_t handle, const Passkey_t passkey); - struct AdvertisementCallbackParams_t { - Address_t peerAddr; - int8_t rssi; - bool isScanResponse; - AdvertisementType_t type; - uint8_t advertisingDataLen; - const uint8_t *advertisingData; - }; - typedef FunctionPointerWithContext AdvertisementReportCallback_t; - friend class BLEDevice; private: