zephyr/include/bluetooth
Szymon Janc 51ac70d42b Bluetooth: GATT: Refactor subscription API
This removes destroy callback for userdata as bt_gatt_subscribe
doesn't take any user data parameters and that destroy callback
was acctually called with subscribe parameters.

We assume subscription is active if bt_gatt_subscribe returned 0
(ie write command was sent). This is due to remote might be sending
notifications before reply to write.

Also note that bt_gatt_subscribe doesn't take any user data parameters
and that destroy callback was acctually called with subscribe
parameters.

If application would require to pass user data along with parameters
it may use CONTAINER_OF macro along with bt_gatt_subscribe_params.

Change-Id: I58ac9cd481ffa08ccc2d7a0464ca75f61fb280c5
Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
2016-02-10 18:52:29 -05:00
..
bluetooth.h Bluetooth: Rename BT_LE_ADV_ADDR_PUBLIC to BT_LE_ADV_ADDR_IDENTITY 2016-02-05 20:25:31 -05:00
conn.h Bluetooth: Add API to update LE connection parameters 2016-02-05 20:25:33 -05:00
driver.h c++: Add extern "C" { } block to header files 2016-02-05 20:25:22 -05:00
gatt.h Bluetooth: GATT: Refactor subscription API 2016-02-10 18:52:29 -05:00
hci.h Bluetooth: BR/EDR: Rename encr_mode to encr_enabled 2016-02-05 20:25:27 -05:00
l2cap.h Bluetooth: L2CAP: Fix bt_l2cap_chan_send documentation 2016-02-05 20:25:28 -05:00
log.h Bluetooth: Add missing nanokernel.h dependency to log.h 2016-02-05 20:25:26 -05:00
uuid.h Bluetooth: Add clarifying comment about usage of struct bt_uuid 2016-02-05 20:25:32 -05:00