bloblist: add api to get blob with size
authorRaymond Mao <raymond.mao@linaro.org>
Mon, 27 Jan 2025 14:49:34 +0000 (06:49 -0800)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 28 Jan 2025 06:59:21 +0000 (08:59 +0200)
commitbb894c5da5151e0858e217407c0cdeb989725a4a
tree6910b8f99af21e99e812a1dfe50272e5c0bacba9
parentb8eaa52612bf34164e7f495a094a5a419903a3ed
bloblist: add api to get blob with size

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>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
common/bloblist.c
include/bloblist.h
test/common/bloblist.c