35typedef enum : uint32_t {
ra8_err_t priv_mdl_epub_add_meta(mz_zip_archive *zip, const char *mani, const char *spine, const char *nav, size_t page_count, const mdl_export_meta_t *meta, char *opf, size_t opf_buf_cap, char *navdoc, size_t nav_buf_cap)
Build EPUB package metadata and finalize the archive.
bool priv_mdl_epub_add_str(mz_zip_archive *zip, const char *name, const char *body)
Add an in-memory string as a stored ZIP entry.
mdl_epub_size_t
EPUB string-buffer sizing (grows with the page count).
@ k_epub_xhtml_max
One page's xhtml document (embeds the name).
@ k_epub_name_esc_max
XML-escaped page name (k_name_max * 6).
@ k_epub_base_bytes
Fixed opf/nav overhead.
@ k_epub_entry_max
A zip entry path ("OEBPS/images/" + name).
@ k_epub_per_page_bytes
Per-page opf/nav accumulator growth.
@ k_epub_workspace_cap
Maximum bounded XML accumulator bytes.
@ k_epub_frag_max
One manifest fragment (fixed + escaped name).
bool priv_mdl_epub_str_cat(char *dst, size_t cap, const char *text)
Append text to NUL-terminated dst; report whether it fully fit.
Module-private contracts shared by chapter export writers.
@ k_max_pages
Maximum page entries per chapter.
#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.