zephyr/subsys/bluetooth/host
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
..
mesh Bluetooth: Add Kconfig option to disable HCI ECDH support 2018-11-21 12:26:27 -05:00
CMakeLists.txt
Kconfig Bluetooth: Add Kconfig option to disable HCI ECDH support 2018-11-21 12:26:27 -05:00
a2dp.c Bluetooth: Switch from SYS_LOG to logger-based logging 2018-10-19 14:50:22 +02:00
a2dp_internal.h
at.c
at.h
att.c Bluetooth: ATT: Rename op parameter of att_write_rsp 2018-11-20 13:14:58 +02:00
att_internal.h
avdtp.c Bluetooth: Switch from SYS_LOG to logger-based logging 2018-10-19 14:50:22 +02:00
avdtp_internal.h
conn.c bluetooth: host: Rename bt_conn_get_id and make it public. 2018-11-28 18:20:38 +02:00
conn_internal.h bluetooth: host: Rename bt_conn_get_id and make it public. 2018-11-28 18:20:38 +02:00
crypto.c Bluetooth: Switch from SYS_LOG to logger-based logging 2018-10-19 14:50:22 +02:00
crypto.h
ecc.h
gatt.c bluetooth: host: Rename bt_conn_get_id and make it public. 2018-11-28 18:20:38 +02:00
gatt_internal.h
hci_core.c bluetooth: host: Rename bt_conn_get_id and make it public. 2018-11-28 18:20:38 +02:00
hci_core.h Bluetooth: Update advertising data without advertising restart 2018-10-29 12:30:34 +02:00
hci_ecc.c Bluetooth: host: Increase ECC thread stack 2018-11-21 14:39:36 +02:00
hci_ecc.h
hci_raw.c Bluetooth: Switch from SYS_LOG to logger-based logging 2018-10-19 14:50:22 +02:00
hci_raw_internal.h
hfp_hf.c Bluetooth: Switch from SYS_LOG to logger-based logging 2018-10-19 14:50:22 +02:00
hfp_internal.h
keys.c Bluetooth: host: Clear CCC when clearing all keys 2018-11-26 18:34:41 +02:00
keys.h
keys_br.c Bluetooth: Switch from SYS_LOG to logger-based logging 2018-10-19 14:50:22 +02:00
l2cap.c logging: Fix errors in log usage 2018-11-10 12:38:29 -05:00
l2cap_br.c Bluetooth: Switch from SYS_LOG to logger-based logging 2018-10-19 14:50:22 +02:00
l2cap_internal.h Bluetooth: L2CAP: Rename LE Connection Response Results 2018-10-25 08:02:54 +01:00
monitor.c Bluetooth: Convert monitor protocol to a logger backend 2018-10-19 14:50:22 +02:00
monitor.h
rfcomm.c Bluetooth: Switch from SYS_LOG to logger-based logging 2018-10-19 14:50:22 +02:00
rfcomm_internal.h
sdp.c Bluetooth: Switch from SYS_LOG to logger-based logging 2018-10-19 14:50:22 +02:00
sdp_internal.h
settings.c Bluetooth: Switch from SYS_LOG to logger-based logging 2018-10-19 14:50:22 +02:00
settings.h
smp.c Bluetooth: host: Fix trivial comment mismatch 2018-11-09 16:20:19 +02:00
smp.h
smp_null.c Bluetooth: Switch from SYS_LOG to logger-based logging 2018-10-19 14:50:22 +02:00
testing.c
testing.h
uuid.c