ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
mdl_export_epub_internal.h
Go to the documentation of this file.
1
14#pragma once
15
16#include <stddef.h>
17#include <stdint.h>
18
19#include "mdl_export_internal.h"
20#include "miniz.h"
21
45
65RA8_PRIV bool priv_mdl_epub_str_cat(char* dst, size_t cap, const char* text);
66
83RA8_PRIV bool priv_mdl_epub_add_str(mz_zip_archive* zip, const char* name, const char* body);
84
110RA8_PRIV ra8_err_t priv_mdl_epub_add_meta(mz_zip_archive* zip,
111 const char* mani,
112 const char* spine,
113 const char* nav,
114 size_t page_count,
115 const mdl_export_meta_t* meta,
116 char* opf,
117 size_t opf_buf_cap,
118 char* navdoc,
119 size_t nav_buf_cap);
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.
Definition ra8_err.h:546
Rich series and chapter metadata for export containers (ComicInfo.xml, EPUB OPF).
Definition mdl_export.h:96