nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
suit_dfu_fetch_source.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef SUIT_DFU_FETCH_SOURCE_H__
8#define SUIT_DFU_FETCH_SOURCE_H__
9
26#if defined(CONFIG_SUIT_STREAM_FETCH_SOURCE_MGR) || defined(__DOXYGEN__)
27
28#include <stddef.h>
29#include <stdint.h>
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
81typedef int (*suit_dfu_fetch_source_request_fn)(const uint8_t *uri, size_t uri_length,
82 uint32_t session_id);
83
95
109int suit_dfu_fetch_source_write_fetched_data(uint32_t session_id, const uint8_t *data, size_t len);
110
123int suit_dfu_fetch_source_seek(uint32_t session_id, size_t offset);
124
125#ifdef __cplusplus
126}
127#endif
128
129#endif /* CONFIG_SUIT_STREAM_FETCH_SOURCE_MGR || __DOXYGEN__ */
130
135#endif /* SUIT_DFU_FETCH_SOURCE_H__ */
int(* suit_dfu_fetch_source_request_fn)(const uint8_t *uri, size_t uri_length, uint32_t session_id)
Fetch source callback function.
Definition: suit_dfu_fetch_source.h:81
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.