Minor temporary patch to allow DFU packet callback

Fork of BLE_API by Bluetooth Low Energy

Revision:
382:dcd0428dadb0
Parent:
381:12cb29d3cea4
Child:
385:6e66d1c6de00
--- a/public/Gap.h	Wed May 13 08:51:07 2015 +0100
+++ b/public/Gap.h	Wed May 13 08:51:07 2015 +0100
@@ -261,6 +261,7 @@
         onLinkSecured(),
         onSecurityContextStored(),
         onPasskeyDisplay(),
+        onAdvertisementReport(),
         disconnectionCallChain() {
         /* empty */
     }
@@ -311,6 +312,17 @@
         }
     }
 
+    void processAdvertisementReport(const address_t      peerAddr,
+                                    int8_t               rssi,
+                                    bool                 isScanResponse,
+                                    AdvertisementType_t  type,
+                                    uint8_t              advertisingDataLen,
+                                    const uint8_t       *advertisingData) {
+        if (onAdvertisementReport) {
+            onAdvertisementReport(peerAddr, rssi, isScanResponse, type, advertisingDataLen, advertisingData);
+        }
+    }
+
     void processEvent(GapEvents::gapEvent_e type) {
         switch (type) {
             case GapEvents::GAP_EVENT_TIMEOUT: