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

Per-book bounded storage for strict OPF/container/TOC parsing. More...

#include <epub.h>

Collaboration diagram for epub_xml_workspace_t:

Data Fields

xml_workspace_t reader
 4096-byte open-element stack.
xml_span_t references [k_epub_max_chapters]
 Spine idref spans retained between OPF passes.
xml_span_t legacy_cover_id
 EPUB 2 cover manifest id.
uint16_t reference_count
 Valid entries in references.

Detailed Description

Per-book bounded storage for strict OPF/container/TOC parsing.

The reader stack is reused between sequential passes. Reference spans point into the currently parsed immutable OPF and never outlive it.

Definition at line 105 of file epub.h.

Field Documentation

◆ legacy_cover_id

xml_span_t epub_xml_workspace_t::legacy_cover_id

EPUB 2 cover manifest id.

Definition at line 109 of file epub.h.

Referenced by internal_opf_metadata_child(), and internal_opf_resolve_refs().

◆ reader

xml_workspace_t epub_xml_workspace_t::reader

◆ reference_count

uint16_t epub_xml_workspace_t::reference_count

Valid entries in references.

Definition at line 110 of file epub.h.

Referenced by internal_collect_spine(), and internal_opf_resolve_refs().

◆ references

xml_span_t epub_xml_workspace_t::references[k_epub_max_chapters]

Spine idref spans retained between OPF passes.

Definition at line 108 of file epub.h.

Referenced by internal_collect_spine(), and internal_opf_resolve_refs().


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