EPUB (.epub) reader and chapter iterator for ra8-firmware.
@ k_epub_max_path_len
Max href length (incl.
ra8_err_t priv_epub_xml_parse_container(const uint8_t *xml_bytes, size_t xml_len, epub_container_result_t *out, epub_xml_workspace_t *workspace)
Parse META-INF/container.xml and copy the rootfile path out.
ra8_err_t priv_epub_xml_parse_nav(const uint8_t *xml_bytes, size_t xml_len, epub_book_t *book)
Parse an EPUB 3 nav document into book->toc.
ra8_err_t priv_epub_xml_parse_opf(const uint8_t *xml_bytes, size_t xml_len, epub_book_t *book)
Parse the OPF document into metadata, cover and spine.
ra8_err_t priv_epub_xml_parse_ncx(const uint8_t *xml_bytes, size_t xml_len, epub_book_t *book)
Parse an EPUB 2 NCX document into book->toc.
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Out-parameter struct returned by priv_epub_xml_parse_container().
char opf_path[k_epub_max_path_len]
Rootfile path, NUL-terminated.
Per-book bounded storage for strict OPF/container/TOC parsing.