Skip to content

Commit 0d65cac

Browse files
chengkai15kartben
authored andcommitted
doc: releases: add migration note for bt_conn_br_cb refactor
Add a migration guide entry for the BR/EDR callback restructuring introduced in PR zephyrproject-rtos#108022. The role_changed and br_mode_changed callbacks in bt_conn_cb have been moved into a new bt_conn_br_cb sub-struct, requiring users to update designated initializers. Signed-off-by: Kai Cheng <chengkai@xiaomi.com>
1 parent 381e9fc commit 0d65cac

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

doc/releases/migration-guide-4.5.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,19 @@ Bluetooth Audio
176176

177177
.. zephyr-keep-sorted-stop
178178
179+
Bluetooth Classic
180+
=================
181+
182+
* The BR/EDR specific callbacks ``role_changed`` and ``br_mode_changed`` in
183+
:c:struct:`bt_conn_cb` have been moved into a new sub-struct
184+
:c:struct:`bt_conn_br_cb`, accessible via the ``br`` member. Application code
185+
using these callbacks must update the designated initializers:
186+
187+
* ``.role_changed`` → ``.br.role_changed``
188+
* ``.br_mode_changed`` → ``.br.mode_changed``
189+
190+
(:github:`108022`)
191+
179192
Bluetooth HCI
180193
=============
181194

0 commit comments

Comments
 (0)