ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
epub_manifest_item_t Struct Reference

One <manifest> <item> entry, retained in OPF document order. More...

#include <epub.h>

Data Fields

char id [k_epub_id_len]
 Manifest item id (or "" if absent).
char href [k_epub_max_path_len]
 Item href (relative to the OPF dir).
char media_type [k_epub_media_len]
 Item media-type (or "" if absent).

Detailed Description

One <manifest> <item> entry, retained in OPF document order.

The on-device EPUB->.rabook compiler iterates the manifest in document order to emit the stylesheet and image tables (and to resolve the cover by id), so the raw id, href, and media-type are kept verbatim. Filtering is done by exact media_type string compare, matching the desktop epub_compile.py (manifest.items() in OPF order), which is what keeps the emitted blob byte-identical.

Invariant
All three fields are NUL-terminated; absent attributes are "".
See also
epub_manifest_count()
epub_manifest_item()

Definition at line 260 of file epub.h.

Field Documentation

◆ href

char epub_manifest_item_t::href[k_epub_max_path_len]

Item href (relative to the OPF dir).

Definition at line 262 of file epub.h.

Referenced by internal_add_manifest_image(), internal_compile_images(), internal_compile_stylesheets(), and internal_manifest_item().

◆ id

char epub_manifest_item_t::id[k_epub_id_len]

Manifest item id (or "" if absent).

Definition at line 261 of file epub.h.

Referenced by internal_manifest_item().

◆ media_type

char epub_manifest_item_t::media_type[k_epub_media_len]

Item media-type (or "" if absent).

Definition at line 263 of file epub.h.

Referenced by internal_add_manifest_image(), internal_compile_stylesheets(), and internal_manifest_item().


The documentation for this struct was generated from the following file:
  • apps/shared_libs/epub/inc/epub.h