24typedef enum : uint16_t {
ra8_err_t(* mdl_cache_fetch_fn)(void *context, const char *url, const mdl_net_req_t *request, char *buffer, size_t capacity, size_t *out_length, mdl_net_resp_t *response)
Injected bounded GET callback used by the cache.
mdl_cache_limit_t
Persistent cache schema and fixed-capacity record bound.
@ k_mdl_cache_schema_version
Current binary index schema.
@ k_mdl_cache_record_max
Records retained per host.
ra8_err_t mdl_cache_get_buf(mdl_cache_t *cache, const char *url, const mdl_net_req_t *base_request, mdl_cache_fetch_fn fetch, void *fetch_context, char *buffer, size_t capacity, size_t *out_length, mdl_net_resp_t *response, mdl_cache_result_t *result)
Fetch one document through the per-host persistent cache.
Per-site descriptor loaded from a flat key=value config file.
Streaming HTTP(S) GET seam (a real function-pointer vtable) for the host manga downloader (v0).
@ k_mdl_last_mod_max
Raw Last-Modified header value buffer bytes.
@ k_mdl_etag_max
Raw ETag header value buffer bytes.
Persistent per-series library state for the media downloader.
@ k_mdl_relpath_max
Page path relative to the series dir.
Injected portable storage resources for downloader domain code.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
ra8_io targetable byte-stream facade – one writer, many destinations.
Caller-owned workspace for one loaded host index.
uint64_t host_hash
Bound host identity.
uint16_t schema_version
Binary schema version.
mdl_cache_record_t records[k_mdl_cache_record_max]
Retained observations.
uint16_t record_count
Populated rows.
One exact URL-keyed cached document observation.
uint64_t content_hash
Exact persisted body identity.
char url[k_mdl_url_max]
Exact canonical request URL.
char etag[k_mdl_etag_max]
Last response ETag, or empty.
char last_modified[k_mdl_last_mod_max]
Last-Modified, or empty.
uint64_t url_hash
FNV identity accelerator.
uint16_t response_status
Last observed HTTP status.
int64_t fetched_at
Completion epoch seconds.
char relative_path[k_mdl_relpath_max]
Body leaf beneath the host dir.
Observable outcome of one cache lookup.
bool body_reused
Returned bytes came from verified storage.
bool revalidated
A network request was issued.
bool index_rebuilt
A corrupt index was discarded first.
int64_t age_seconds
Age before this operation, or -1 if unknown.
uint16_t observed_status
Network or retained status.
One non-reentrant cache binding over caller storage.
bool refetch
Force a network revalidation.
const char * root
Canonical cache root.
mdl_storage_t * storage
Injected portable storage binding.
mdl_cache_index_t * index
Caller-owned index workspace.
ra8_io_stream_t * diagnostic
Optional cache event sink.
Per-request session parameters.
Per-transfer response metadata surfaced to the politeness governor.
One non-reentrant downloader filesystem dependency bundle.
Caller-allocated byte-stream handle binding a sink to its context.