ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
mdl_cache_internal.h
Go to the documentation of this file.
1
9#pragma once
10
11#include "mdl_cache.h"
12#include "ra8_attributes.h"
13
21
42 const char* url,
43 mdl_cache_paths_t* paths,
44 bool* rebuilt);
45
64
88 const mdl_cache_paths_t* paths,
89 const mdl_cache_record_t* record,
90 char* buffer,
91 size_t capacity,
92 size_t* out_length);
93
119 const mdl_cache_paths_t* paths,
120 uint64_t url_hash,
121 uint64_t content_hash,
122 const char* buffer,
123 size_t length,
124 char* relative_path,
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.
Definition ra8_err.h:546
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.
Definition mdl_cache.h:37
One non-reentrant cache binding over caller storage.
Definition mdl_cache.h:92
One non-reentrant downloader filesystem dependency bundle.
Definition mdl_storage.h:40