zephyr/net
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 Bluetooth: GATT: Refactor subscription API 2016-02-10 18:52:29 -05:00
ip net: contiki: Fix debug prints in ICMPv6 handling 2016-02-05 20:25:32 -05:00
buf.c net: buf: Add net_buf_push_le16 helper function 2016-02-05 20:25:28 -05:00
Kconfig net: buf: Fix net buf debug 2016-02-05 20:24:47 -05:00
Makefile net: Add initial generic buffer implementation 2016-02-05 20:24:38 -05:00