zephyr/subsys/bluetooth
Kim Sekkelund bf11698ed9 bluetooth: host: Rename bt_conn_get_id and make it public.
There is not an easy way to relate an application's user_data to a
connection. One way is to save a pointer to bt_conn in the
application's user_data array upon connection establishment.
Each connection related callback function will have to loop for all
user_data and compare the saved pointer to the passed bt_conn
pointer. This is inefficient if there are many callback activations
during the connection.

This change makes the internal bt_conn mapping function accessible to
applications in conn.h. The function name is changed to
bt_conn_index() to clearly indicate that the function returns an
index of an array.
Add an ASSERT to catch illegal parameter.

Signed-off-by: Kim Sekkelund <ksek@oticon.com>
2018-11-28 18:20:38 +02:00
..
common doc: fix kconfig misspellings 2018-11-02 17:58:16 -04:00
controller Bluetooth: Add common Kconfig option to disable LE Data Length Update 2018-11-21 12:26:27 -05:00
host bluetooth: host: Rename bt_conn_get_id and make it public. 2018-11-28 18:20:38 +02:00
services subsys: bluetooth: services: dev. information service enhancements 2018-11-07 18:08:05 +01:00
shell Bluetooth: shell: Make use of SHELL_CMD_ARG 2018-11-13 20:42:01 +02:00
CMakeLists.txt subsys: bluetooth: services: dev. information service enhancements 2018-11-07 18:08:05 +01:00
Kconfig Bluetooth: Add common Kconfig option to disable LE Data Length Update 2018-11-21 12:26:27 -05:00