Bluetooth: Move bt_data_parse to dedicated source file

This moves bt_data_parse function outside of hci_core.c.
Having it in separate file makes unit testing easier as the
function do not use kernel objects, thus can be used in unit tests
without a need for adding any mocks.

Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
This commit is contained in:
Mariusz Skamra 2023-03-15 15:21:33 +01:00 committed by Carles Cufí
commit 871db2d277
3 changed files with 46 additions and 32 deletions

View file

@ -34,6 +34,7 @@ if(CONFIG_BT_HCI_HOST)
uuid.c
addr.c
buf.c
data.c
hci_core.c
hci_common.c
id.c