ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
epub_xml_shim_internal.h
Go to the documentation of this file.
1
23
24#pragma once
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#include <stddef.h>
31#include <stdint.h>
32
33#include "epub.h"
34#include "ra8_attributes.h"
35#include "ra8_err.h"
36
63
98RA8_PRIV ra8_err_t priv_epub_xml_parse_container(const uint8_t* xml_bytes,
99 size_t xml_len,
101 epub_xml_workspace_t* workspace);
102
136RA8_PRIV ra8_err_t priv_epub_xml_parse_opf(const uint8_t* xml_bytes,
137 size_t xml_len,
138 epub_book_t* book);
139
171RA8_PRIV ra8_err_t priv_epub_xml_parse_ncx(const uint8_t* xml_bytes,
172 size_t xml_len,
173 epub_book_t* book);
174
208RA8_PRIV ra8_err_t priv_epub_xml_parse_nav(const uint8_t* xml_bytes,
209 size_t xml_len,
210 epub_book_t* book);
211
212#ifdef __cplusplus
213}
214#endif
EPUB (.epub) reader and chapter iterator for ra8-firmware.
@ k_epub_max_path_len
Max href length (incl.
Definition epub.h:89
ra8_err_t priv_epub_xml_parse_container(const uint8_t *xml_bytes, size_t xml_len, epub_container_result_t *out, epub_xml_workspace_t *workspace)
Parse META-INF/container.xml and copy the rootfile path out.
ra8_err_t priv_epub_xml_parse_nav(const uint8_t *xml_bytes, size_t xml_len, epub_book_t *book)
Parse an EPUB 3 nav document into book->toc.
ra8_err_t priv_epub_xml_parse_opf(const uint8_t *xml_bytes, size_t xml_len, epub_book_t *book)
Parse the OPF document into metadata, cover and spine.
ra8_err_t priv_epub_xml_parse_ncx(const uint8_t *xml_bytes, size_t xml_len, epub_book_t *book)
Parse an EPUB 2 NCX document into book->toc.
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
Opened EPUB book.
Definition epub.h:286
Out-parameter struct returned by priv_epub_xml_parse_container().
char opf_path[k_epub_max_path_len]
Rootfile path, NUL-terminated.
Per-book bounded storage for strict OPF/container/TOC parsing.
Definition epub.h:105