Improve readability with getHandle inline

Fork of BLE_API by Bluetooth Low Energy

Revision:
251:5d9118449482
Parent:
118:620d28e7a1ba
Child:
255:097be53aea02
diff -r 792e326c2dfd -r 5d9118449482 public/GattCharacteristicWriteCBParams.h
--- a/public/GattCharacteristicWriteCBParams.h	Fri Dec 12 13:32:23 2014 +0000
+++ b/public/GattCharacteristicWriteCBParams.h	Fri Dec 12 13:32:24 2014 +0000
@@ -33,4 +33,13 @@
     const uint8_t *data;   /**< Incoming data, variable length. */
 };
 
-#endif /*__GATT_CHARACTERISTIC_WRITE_CB_PARAMS_H__*/
+struct GattCharacteristicWriteAuthCBParams {
+    GattAttribute::Handle_t  charHandle;
+    uint16_t                 offset; /**< Offset for the write operation. */
+    uint16_t                 len;    /**< Length of the incoming data. */
+    const uint8_t           *data;   /**< Incoming data, variable length. */
+    bool                     authorizationReply; /* This is the out parameter which needs to be set to true by the callback if the
+                                                  * request is to proceed; false otherwise. */
+};
+
+#endif /*__GATT_CHARACTERISTIC_WRITE_CB_PARAMS_H__*/
\ No newline at end of file