zephyr/tests/bluetooth/host/id
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
..
bt_br_oob_get_local
bt_id_add
bt_id_adv_random_addr_check
bt_id_create
bt_id_del
bt_id_delete
bt_id_get
bt_id_init
bt_id_read_public_addr
bt_id_reset
bt_id_scan_random_addr_check
bt_id_set_adv_own_addr Bluetooth: Add and use missing own_addr_type defines 2024-10-23 16:53:23 +02:00
bt_id_set_adv_private_addr
bt_id_set_adv_random_addr
bt_id_set_create_conn_own_addr Bluetooth: Add and use missing own_addr_type defines 2024-10-23 16:53:23 +02:00
bt_id_set_private_addr
bt_id_set_scan_own_addr Bluetooth: Add and use missing own_addr_type defines 2024-10-23 16:53:23 +02:00
bt_le_ext_adv_oob_get_local
bt_le_oob_get_local
bt_le_oob_get_sc_data
bt_le_oob_set_legacy_tk Bluetooth: Host: more secure defaults for key size and legacy pairing 2024-12-04 12:10:54 +01:00
bt_le_oob_set_sc_data
bt_lookup_id_addr
bt_setup_public_id_addr
bt_setup_random_id_addr
mocks Bluetooth: Host: Add type check for bt_conn API 2025-02-11 22:04:51 +01:00
testing_common_defs.h