40 if ((engine ==
nullptr) || (xhtml_buf ==
nullptr)) {
43 if (engine->
in_use == 0U) {
46 if (xhtml_len == 0U) {
Error Code Definitions for ra8-firmware.
@ k_ra8_err_not_initialized
Module not initialized – _init() not yet called successfully.
@ k_ra8_err_null_ptr
Pointer was NULL where a valid pointer was required.
@ k_ra8_err_invalid_size
Invalid size parameter (too large, too small, or misaligned).
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
HTML / CSS reflow + paginate engine for the ra8d2 ereader.
ra8_err_t reflow_parse_xhtml(reflow_t *engine, const uint8_t *xhtml_buf, size_t xhtml_len)
Parse the XHTML buffer into the engine's token stream.
ra8_err_t priv_reflow_xml_walk(reflow_t *engine, const uint8_t *xhtml_buf, size_t xhtml_len)
Tokenize the XHTML buffer and populate engine->tokens[].
Test-access surface for reflow_tokenize.c internal helpers.
Reflow / pagination engine state.
uint32_t text_pool_used
Bytes consumed in text_pool.
uint32_t link_target_count
Interned link targets.
uint32_t token_count
Tokens used.
uint8_t in_use
1 = initialized, 0 = closed.