Private contracts for streamed EPUB XML consumers.
static ra8_err_t internal_manifest_lookup(const uint8_t *source, size_t length, epub_xml_workspace_t *workspace, xml_span_t wanted, xml_span_t *out_href)
Resolve one manifest identifier across the uncapped source manifest.
static void internal_mark_metadata(const uint8_t *source, size_t source_len, const xml_event_t *event, xml_reader_t *reader, xml_span_t unique_id)
Mark a metadata child frame for later text consumption.
static ra8_err_t internal_opf_status(ra8_err_t err, uint16_t manifest_depth, uint16_t spine_depth)
Preserve parser status while enforcing required OPF sections.
static ra8_err_t internal_opf_first(const uint8_t *source, size_t length, epub_book_t *book, xml_span_t *out_spine_toc)
Run the OPF metadata/manifest/cover/font/TOC-source pass.
static ra8_err_t internal_opf_shape(const uint8_t *source, size_t length, epub_xml_workspace_t *workspace)
Validate OPF structure and spine capacity before semantic mutation.
static ra8_err_t internal_collect_spine(const uint8_t *source, size_t length, epub_book_t *book)
Collect exact unprefixed spine itemrefs in source order.
static void internal_metadata_text(const uint8_t *source, size_t source_len, const xml_event_t *event, const xml_reader_t *reader, epub_book_t *book)
Record metadata text based on its live parent marker.
static void internal_manifest_item(const uint8_t *source, size_t source_len, const xml_event_t *event, epub_book_t *book)
Collect one manifest item and its derived resource roles.
static bool internal_font_type(const uint8_t *source, size_t source_len, priv_attr_t media)
Recognise one supported embedded-font media type.
Annotation-attribute framework macros for ra8-firmware.
#define RA8_INTERNAL
Marker that a function is intended to be static (file-local).
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Per-book bounded storage for strict OPF/container/TOC parsing.
Pull-reader state; initialise before each pass.
Immutable byte span expressed relative to the source.
Bounded, caller-owned, no-heap XML pull reader.