
7 Jan
2025
7 Jan
'25
4:30 p.m.
On Tue, 7 Jan 2025 at 08:03, Raymond Mao raymond.mao@linaro.org wrote:
bloblist_find function only returns the pointer of blob data, which is fine for those self-describing data like FDT. But as a common scenario, an interface is needed to retrieve both the pointer and the size of the blob data.
Add a few ut test cases for the new api.
Signed-off-by: Raymond Mao raymond.mao@linaro.org
Changes in v2
- Rename function argument.
- Add ut tests.
common/bloblist.c | 17 +++++++++++++++-- include/bloblist.h | 18 ++++++++++++++++++ test/common/bloblist.c | 4 ++++ 3 files changed, 37 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org