54typedef enum : uint32_t {
178 } admin_directory_workspace;
int mdl_app_run_artifact(const char *url, const char *out_dir, uint32_t timeout, const mdl_run_opts_t *opts)
Download, validate and atomically publish one direct artifact.
int mdl_app_run_update_all(const mdl_series_run_t *base)
Incrementally update every tracked series under a library root.
int mdl_app_run_discover(const mdl_discover_run_t *req, const mdl_run_opts_t *opts, const mdl_series_run_t *base)
Run search or browse discovery and optionally download one result.
int mdl_app_run_verify(const char *target_dir)
Verify one library or artifact tree without mutating it.
int mdl_app_run_init_site(const char *url, const char *descriptor_dir)
Create a starter descriptor for one validated site URL.
int mdl_app_run_remove(const char *out_dir, const char *url_or_slug)
Remove one explicitly tracked series directory.
int mdl_app_run_page(const char *url, const char *out_dir, const char *attr, uint32_t max_imgs, uint64_t seed, uint32_t timeout, const mdl_run_opts_t *opts)
Download image resources from one direct page URL.
int mdl_app_run_pack(const char *dir, mdl_format_t format)
Package an existing image directory without network access.
int mdl_app_run_list(const char *out_dir)
List every tracked series under one library root.
void mdl_app_bind(mdl_app_context_t *ctx)
Bind the caller-owned working set every application mode will use.
int mdl_app_run_series(const mdl_series_run_t *run)
Execute one prepared series download.
mdl_app_limits_t
Fixed sizing for one application composition (large buffers in .bss).
@ k_page_buf_bytes
Max HTML page size.
@ k_storage_work_bytes
Per-handle FS backend state.
@ k_export_arena_bytes
Host export scratch ceiling.
Bounded per-host HTTP document cache for the media downloader.
Package a downloaded chapter folder into a reader-openable container.
struct mdl_export_workspace mdl_export_workspace_t
Caller-owned bounded arena for all exporter scratch state.
Portable bounded operations over a tracked media library.
Streaming HTTP(S) GET seam (a real function-pointer vtable) for the host manga downloader (v0).
Session identity (honest User-Agent) and robots.txt gating.
Persistent per-series library state for the media downloader.
mdl_state_reading_direction_t
Persisted fixed-layout reading direction.
@ k_mdl_language_max
BCP-47 language bytes.
@ k_mdl_person_max
Writer/artist bytes.
@ k_mdl_summary_max
Series summary bytes.
@ k_mdl_title_max
Series title bytes.
Injected portable storage resources for downloader domain code.
@ k_mdl_storage_io_bytes
One bounded read/write chunk.
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.
The one bounded working set every application mode shares.
max_align_t align
Force backend alignment.
mdl_series_metadata_t series_metadata
Current scraped metadata.
mdl_library_workspace_t library_workspace
Bounded tree-removal stack.
mdl_session_t session
Network policy session.
ra8_io_stream_t * output
Borrowed command output sink.
ra8_err_t io_error
First presenter sink failure.
mdl_url_list_t images
Prepared page image URLs.
mdl_export_workspace_t export_ws
Bounded exporter arena view.
mdl_cache_index_t cache_index
One loaded per-host index.
mdl_storage_t storage
Injected filesystem facade.
ra8_io_stream_t * diagnostic
Borrowed diagnostic sink.
mdl_url_list_t chapters
Prepared chapter URLs.
char page[k_page_buf_bytes]
Whole-page HTML buffer.
uint8_t bytes[k_mdl_storage_io_bytes]
Second directory cursor.
mdl_state_t state
Persistent tracked state.
Caller-owned workspace for one loaded host index.
One search or browse request against a configured site descriptor.
const char * term
Search term; unused when browsing.
uint32_t timeout
Per-request budget, ms.
const char * cfg_path
Site descriptor path.
bool browse
Browse latest updates instead of search.
size_t pick
1-based hit to download; 0 lists only.
uint64_t seed
Governor jitter seed.
Caller-owned directory cursor storage and iterative traversal stack.
Session-wide security policy for the network backend.
An injected FACTORY for mdl_net_iface_t: which backend, decided once.
Cross-cutting policy and injected transport threaded into every mode.
mdl_net_policy_t policy
Backend security policy.
const char * contact
Operator contact override, or NULL.
bool polite
True to raise per-host delays.
bool progress
True to draw a progress bar.
bool refetch
True to bypass verified page reuse.
bool allow_incomplete
True to package a run with failures.
const mdl_net_provider_t * net
Injected transport factory.
bool honor_robots
False when robots.txt is ignored.
Parameters of one series download, as values rather than arguments.
bool combine
Combine into one archive.
uint64_t seed
Politeness jitter seed.
bool update
Incremental (skip complete).
const char * out_dir
Output library root.
mdl_format_t format
Output container.
double from_num
First chapter number to fetch.
bool from_present
Whether from_num applies.
const char * cfg_path
Site descriptor path.
uint32_t timeout
Per-request budget, ms.
size_t chapters
Max chapters (window mode).
const char * series_url
Series page URL.
const char * cache_dir
Per-host persistent cache root.
const mdl_run_opts_t * opts
Identity/security knobs.
One download session's identity and robots.txt state.
One series' complete persistent state (declare at file scope).
One non-reentrant downloader filesystem dependency bundle.
Bounded list of absolute URLs found on a page.
Caller-allocated byte-stream handle binding a sink to its context.