30typedef enum : uint64_t {
247 const char* destination,
struct ra8_c6link ra8_c6link_t
Pull-based media download client over ESP-hosted CustomRpc.
struct ra8_mdl_sha256_iface ra8_mdl_sha256_iface_t
bool(* ra8_mdl_cancel_requested_fn)(void *ctx)
Query whether the caller requests cooperative cancellation.
ra8_err_t ra8_c6link_mdl_transfer(ra8_c6link_t *link, const char *url, const char *destination, const ra8_mdl_transfer_config_t *config, ra8_mdl_transfer_result_t *result)
Fetch, verify, and atomically publish one remote byte stream.
struct ra8_mdl_transfer_config ra8_mdl_transfer_config_t
ra8_mdl_transfer_limit_t
Absolute transfer policy limits independent of caller chunk geometry.
@ k_ra8_mdl_transfer_bytes_max
Maximum one-object byte budget.
struct ra8_mdl_storage_iface ra8_mdl_storage_iface_t
struct ra8_mdl_transfer_result ra8_mdl_transfer_result_t
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
@ k_ra8_mdl_sha256_bytes
SHA-256 digest size in bytes.
Bounded request policy forwarded to the C6 HTTP client.
HTTP status and selected response headers proven by the C6 backend.
Streaming SHA-256 seam with caller-owned fixed storage.
ra8_err_t(* update)(void *ctx, const uint8_t *data, uint16_t len)
Feed one ordered byte span to the running hash.
ra8_err_t(* init)(void *ctx)
Reset the caller-owned context for a SHA-256 operation.
void * ctx
Hash context passed to every function.
Transactional destination seam for one downloaded object.
ra8_err_t(* commit)(void *ctx)
Atomically publish the complete temporary object.
void * ctx
Backend context passed to every function.
ra8_err_t(* begin)(void *ctx, const char *destination)
Create private temporary state for destination.
ra8_err_t(* validate)(void *ctx, uint64_t total_bytes, const uint8_t sha256[k_ra8_mdl_sha256_bytes])
Validate artifact identity and structure before publication.
ra8_err_t(* abort)(void *ctx)
Destroy temporary state; valid after every successful begin.
Fixed policy and injected mechanisms for one transfer.
ra8_mdl_sha256_iface_t sha256
Independent running digest.
void * cancel_ctx
Context for cancel_requested.
mdl_format_t format
Requested and validated artifact.
ra8_mdl_cancel_requested_fn cancel_requested
Optional cooperative cancel query.
ra8_mdl_http_policy_t http
Forwarded downloader request policy.
uint16_t chunk_bytes
Maximum bytes requested per pull.
uint32_t max_chunks
Absolute number of permitted pulls.
ra8_mdl_storage_iface_t storage
Transactional RA8-local destination.
Verified result published by a completed transfer.
mdl_format_t format
Validated committed format.
uint32_t chunks_received
Remote responses consumed.
ra8_mdl_http_response_t response
Proven terminal HTTP metadata.
uint64_t bytes_stored
Bytes atomically committed.
uint8_t sha256[k_ra8_mdl_sha256_bytes]
Independently verified digest.