zephyr/samples
Emil Gydesen 01d0f1a566 Bluetooth: PBP: Fix parsing and return issue with bt_pbp_parse_announcement
bt_pbp_parse_announcement was defined as uint8_t return value function,
but returned errno values, so it was modified to return an int instead.
The return values are also now more granular and documented.

The function also triggered a coverity issue with the way that it
parsed the data->data, as it would be marked as tainted. This should
be fixed by using the net_buf_simple API, which also improves on
some other parts of the code.

Finally the meta argument for the function was changed from an
unknown sized buffer, where the caller somehow had to know the
size of the metadata before calling the parsing function, to
an output pointer. This also omits the requirement for the
caller to always copy the metadata, where now it just
gets a pointer to the metadata in the bt_data struct. The application
can now always decide whether to continue to parse the metadata or
to copy it, using the pointer and the return value of the function.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-01-31 21:33:56 -05:00
..
application_development samples/code_relocation_nocopy: Increase fake flash size 2023-11-20 06:07:58 -05:00
arch samples: fix thread function signatures 2023-10-30 12:24:34 +01:00
basic samples: add Wio Terminal overlay to blinky pwm 2024-01-15 13:56:51 -05:00
bluetooth Bluetooth: PBP: Fix parsing and return issue with bt_pbp_parse_announcement 2024-01-31 21:33:56 -05:00
boards samples: boards: stm32: pm: suspend_to_ram: add wba standby sample 2024-01-30 18:01:00 +01:00
charger drivers: charger: Adds charge_enable handler 2023-12-12 10:49:39 -06:00
compression samples: lz4: reduce malloc arena size 2023-11-14 09:04:11 +01:00
cpp samples: cpp: add a Hello, world! C++ app 2024-01-17 09:56:34 +01:00
drivers samples: add overlay files for nRF54L15 2024-01-30 21:00:44 +00:00
fuel_gauge fuel_gauge: Repl property struct w/ union 2023-09-27 12:07:59 +02:00
hello_world samples: Switch integration_platforms from native_posix to native_sim 2023-11-20 12:02:48 +01:00
kernel samples/kernel/metairq_dispatch: Correct comment 2023-11-20 12:02:48 +01:00
modules samples: modules: lvgl: demos: add test case for stm32h747i_disco 2024-01-30 10:27:57 -06:00
net samples: lwm2m: Clarify DTLS settings 2024-01-26 12:00:51 -06:00
philosophers samples: Switch integration_platforms from native_posix to native_sim 2023-11-20 12:02:48 +01:00
posix samples: posix: implement philosphers using pthreads 2024-01-28 13:01:36 -05:00
sensor samples: add overlay files for nRF54L15 2024-01-30 21:00:44 +00:00
shields sample/shield: x-nucleo-iks01a3: add support to lis2de12 on DIL24 2024-01-31 15:39:45 +01:00
subsys samples: subsys: display: lvgl: add wio_terminal board 2024-01-30 10:35:32 -06:00
synchronization samples: synchronization: add static thread 2023-11-16 09:25:33 +01:00
tfm_integration tfm: Provide properties for selected TF-M toolchain for NS application 2024-01-17 16:52:52 +01:00
userspace samples: hello_world_user: fail in compilation if userspace is not enabled 2024-01-12 08:32:54 -05:00
classic.rst
index.rst doc: samples: Fix incorrect maxdepth for some toctrees 2023-09-26 12:02:54 +02:00
sample_definition_and_criteria.rst docs: Sample definition: Replace native_posix with native_sim 2023-11-20 12:02:48 +01:00