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

Baked EPUB TOC fixtures for epub_toc (#116). More...

#include <stddef.h>
#include <stdint.h>
Include dependency graph for epub_toc_fixture.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  : size_t { k_etoc_ncx_len = 1528U }
 Baked ncx.epub (TOC fixture, #116). More...
enum  : size_t { k_etoc_nav_len = 1515U }
 Baked nav.epub (TOC fixture, #116). More...
enum  : size_t { k_etoc_bad_len = 1175U }
 Baked bad.epub (TOC fixture, #116). More...

Variables

static const uint8_t k_etoc_ncx [k_etoc_ncx_len]
static const uint8_t k_etoc_nav [k_etoc_nav_len]
static const uint8_t k_etoc_bad [k_etoc_bad_len]

Detailed Description

Baked EPUB TOC fixtures for epub_toc (#116).

Pure ASCII.

Three minimal .epub archives, byte-identical on host and target:

  • ncx: EPUB2 with a toc.ncx navMap (2 navPoints: "Intro", "Body").
  • nav: EPUB3 with a nav.xhtml ol (3 entries: "Cover", "Story", "Notes"; "Notes" targets a doc absent from the spine -> resolves not_found).
  • bad: no TOC document at all -> toc_kind none, spine fallback. Generated by tools; do not edit by hand.

Definition in file epub_toc_fixture.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum : size_t

Baked bad.epub (TOC fixture, #116).

Pure ASCII.

Enumerator
k_etoc_bad_len 

Etoc bad length.

Definition at line 223 of file epub_toc_fixture.h.

◆ anonymous enum

anonymous enum : size_t

Baked ncx.epub (TOC fixture, #116).

Pure ASCII.

Enumerator
k_etoc_ncx_len 

Etoc ncx length.

Definition at line 22 of file epub_toc_fixture.h.

◆ anonymous enum

anonymous enum : size_t

Baked nav.epub (TOC fixture, #116).

Pure ASCII.

Enumerator
k_etoc_nav_len 

Etoc nav length.

Definition at line 123 of file epub_toc_fixture.h.

Variable Documentation

◆ k_etoc_bad

const uint8_t k_etoc_bad[k_etoc_bad_len]
static

Definition at line 224 of file epub_toc_fixture.h.

Referenced by etoc_provision_or_halt().

◆ k_etoc_nav

const uint8_t k_etoc_nav[k_etoc_nav_len]
static

Definition at line 124 of file epub_toc_fixture.h.

Referenced by etoc_provision_or_halt().

◆ k_etoc_ncx

const uint8_t k_etoc_ncx[k_etoc_ncx_len]
static

Definition at line 23 of file epub_toc_fixture.h.

Referenced by etoc_provision_or_halt().