ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
mdl_export_rabook_internal.h
Go to the documentation of this file.
1
13#pragma once
14
15#include <stddef.h>
16#include <stdint.h>
17
18#include "epub.h"
19#include "mdl_export_internal.h"
21
29
31typedef struct {
32 const uint8_t* bytes;
33 uint32_t size_bytes;
35
58 mdl_storage_t* storage,
59 const char* directory,
60 const char* destination,
61 char* path,
62 size_t capacity);
63
82 mdl_storage_t* storage,
83 const char* path);
84
101
120RA8_PRIV size_t priv_mdl_rabook_epub_read(void* opaque,
121 uint64_t offset,
122 void* destination,
123 size_t length);
124
145 uint32_t offset,
146 uint8_t* destination,
147 uint32_t requested,
148 uint32_t* out_read);
EPUB (.epub) reader and chapter iterator for ra8-firmware.
Module-private contracts shared by chapter export writers.
Private portable byte-stream contracts for media exporters.
ra8_err_t priv_mdl_rabook_temp_begin(mdl_export_output_t *output, mdl_storage_t *storage, const char *directory, const char *destination, char *path, size_t capacity)
Reserve one collision-free temporary EPUB publication path.
ra8_err_t priv_mdl_rabook_flat_read(void *opaque, uint32_t offset, uint8_t *destination, uint32_t requested, uint32_t *out_read)
Serve one exact flat-blob read to the RBKC writer.
size_t priv_mdl_rabook_epub_read(void *opaque, uint64_t offset, void *destination, size_t length)
Serve one exact random EPUB read to the streamed reader.
ra8_err_t priv_mdl_rabook_epub_close(mdl_rabook_epub_source_t *source)
Close one temporary EPUB stream.
ra8_err_t priv_mdl_rabook_epub_open(mdl_rabook_epub_source_t *source, mdl_storage_t *storage, const char *path)
Open one validated temporary EPUB as a portable random-read stream.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
Caller-owned open file; fields are private to the facade.
One validated staged publication, including random ZIP backfill.
Open portable EPUB stream retained during one compile.
uint32_t calls
Bounded random-read call tally.
uint64_t size_bytes
Immutable complete EPUB extent.
fw_fs_file_t file
Borrowed portable file handle.
ra8_err_t error
First read/seek protocol failure.
Resident flat RABOOK1 source for the chunked container writer.
const uint8_t * bytes
Immutable flat blob bytes.
uint32_t size_bytes
Complete flat blob extent.
One non-reentrant downloader filesystem dependency bundle.
Definition mdl_storage.h:40