|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Private validation seam shared by RABOOK pipeline entry points. More...
Go to the source code of this file.
Functions | |
| ra8_err_t | priv_rabook_pipeline_check_common (const epub_book_t *epub, const ra8_rabook_buffers_t *bufs, const ra8_rabook_pipeline_scratch_t *scr) |
| Validate arguments common to both RABOOK pipeline entry points. | |
Private validation seam shared by RABOOK pipeline entry points.
Keeps the buffer compiler independent of the optional ra8_fs publication wrapper while preserving one argument/profile policy.
[Ring 4 / EPUB Compiler] {World: NS}
Definition in file ra8_rabook_pipeline_internal.h.
| ra8_err_t priv_rabook_pipeline_check_common | ( | const epub_book_t * | epub, |
| const ra8_rabook_buffers_t * | bufs, | ||
| const ra8_rabook_pipeline_scratch_t * | scr ) |
Validate arguments common to both RABOOK pipeline entry points.
Checks the reader lifecycle plus every builder and scratch span required by the buffer compiler before it mutates output state.
| [in] | epub | Open streamed or resident EPUB reader. |
| [in] | bufs | Complete caller-owned builder arenas. |
| [in] | scr | Complete caller-owned parser/raster scratch. |
| k_ra8_ok | The compiler may consume every supplied view. |
| k_ra8_err_null_ptr | A required pointer or nested span is NULL. |
| k_ra8_err_invalid_state | The EPUB reader is not open. |
Validate arguments common to both RABOOK pipeline entry points.
Centralises the shared null guards so each public function stays flat; the FS-write entry adds its own mount / out_path guards, the buffer entry its own out_blob / out_len guards.
| [in] | epub | Open book pointer to validate. |
| [in] | bufs | Builder arenas pointer to validate. |
| [in] | scr | Scratch buffers pointer to validate. |
| k_ra8_ok | All three arguments are non-NULL. |
| k_ra8_err_null_ptr | One of the arguments is NULL. |
Definition at line 298 of file ra8_rabook_pipeline.c.
References k_ra8_ok, RA8_CHECK_NULL_PTR, RA8_PRIV, s_tag, and ra8_rabook_pipeline_scratch_t::xml_workspace.
Referenced by rabook_compile_from_epub(), and rabook_compile_from_epub_to_buffer().