121 uint64_t content_hash,
125 size_t relative_capacity);
@ k_fw_fs_path_cap
Largest portable path including its NUL.
Bounded per-host HTTP document cache for the media downloader.
ra8_err_t priv_mdl_cache_load(mdl_cache_t *cache, const char *url, mdl_cache_paths_t *paths, bool *rebuilt)
Prepare a host directory and load or recover its index.
ra8_err_t priv_mdl_cache_publish_body(mdl_storage_t *storage, const mdl_cache_paths_t *paths, uint64_t url_hash, uint64_t content_hash, const char *buffer, size_t length, char *relative_path, size_t relative_capacity)
Publish one new body under its immutable content-derived leaf.
ra8_err_t priv_mdl_cache_read_body(mdl_storage_t *storage, const mdl_cache_paths_t *paths, const mdl_cache_record_t *record, char *buffer, size_t capacity, size_t *out_length)
Read and hash-check one retained body into caller storage.
ra8_err_t priv_mdl_cache_save(mdl_cache_t *cache, const mdl_cache_paths_t *paths)
Transactionally publish the current host index.
@ k_mdl_gov_host_max
Host-key buffer bytes (matches config).
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Complete paths and host identity derived for one request.
uint64_t host_hash
Stable host identity.
char host[k_mdl_gov_host_max]
Lowercase host and optional port.
char index_path[k_fw_fs_path_cap]
Versioned host index path.
char directory[k_fw_fs_path_cap]
Host-specific cache directory.
One exact URL-keyed cached document observation.
One non-reentrant cache binding over caller storage.
One non-reentrant downloader filesystem dependency bundle.