zephyr/subsys/bluetooth
Emil Gydesen b67d291207 Bluetooth: Host: Add type check for bt_conn API
Added a new function, bt_conn_is_type, that returns whether
the provided conn object is of the provided type.

This check is then used to ensure that the conn objects
supplied to other bt_conn function are of the right type.
The right type has also been documented for these functions.

This is an initial commit for a larger change in the BT Host,
as similar checks should be added to the L2CAP, GATT, ISO,
Audio and possibly Mesh APIs.

The type check could have been implemented by using the
bt_conn_get_info function, but that requires additional
function calls as well as memory allocation and copy.
Since bt_conn_is_type is designed to be widely used, it
was suited for its own function.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-11 22:04:51 +01:00
..
audio Bluetooth: TBS: Fix -Wsometimes-uninitialized warning 2025-02-11 03:07:39 +01:00
common bluetooth: shell: move bt_shell_private.c to common folder 2025-01-14 10:56:16 +01:00
controller Bluetooth: Controller: Fix casting in radio_aa_set for BASE0 2025-02-11 03:07:27 +01:00
crypto Bluetooth: crypto: add select PSA_WANT_ALG_ECB_NO_PADDING 2025-01-15 22:57:20 +01:00
host Bluetooth: Host: Add type check for bt_conn API 2025-02-11 22:04:51 +01:00
lib
mesh Bluetooth: Mesh: remove double cdb node storing 2025-02-11 18:56:37 +01:00
services Bluetooth: CTS: Incorrect assert in bt_cts_init() 2025-01-29 12:51:30 +01:00
CMakeLists.txt Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
Kconfig Bluetooth: ISO: Add range to BT_ISO_MAX_BIG 2025-02-11 15:42:03 +01:00
Kconfig.adv Bluetooth: Host: Add support for Advertising Coding Selection 2025-02-08 10:09:41 +01:00
Kconfig.logging Bluetooth: AVRCP: Implemation of AVRCP. 2024-11-18 13:19:07 -05:00