nRF Connect SDK API 2.8.0
|
The fetch source manager allows for registration of multiple fetch sources to be used by the SUIT processor during manifest processing. More...
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
typedef int(* | suit_dfu_fetch_source_request_fn) (const uint8_t *uri, size_t uri_length, uint32_t session_id) |
Fetch source callback function. | |
int | suit_dfu_fetch_source_register (suit_dfu_fetch_source_request_fn request_fn) |
Register a fetch source. | |
int | suit_dfu_fetch_source_write_fetched_data (uint32_t session_id, const uint8_t *data, size_t len) |
Passes the fetched data to the SUIT processor. | |
int | suit_dfu_fetch_source_seek (uint32_t session_id, size_t offset) |
Move the internal write pointer inside the SUIT processor to the given offset. | |
The fetch source manager allows for registration of multiple fetch sources to be used by the SUIT processor during manifest processing.
A fetch source is any module, that registers it's URI handler through the suit_dfu_fetch_source_register and provides downloaded payload chunks using the suit_dfu_fetch_source_write_fetched_data API. The SUIT proccessor iterates over the registered fetch sources, calling respective suit_dfu_fetch_source_request_fn.