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

One series' complete persistent state (declare at file scope). More...

#include <mdl_state.h>

Collaboration diagram for mdl_state_t:

Data Fields

uint16_t version
 Schema version.
char series_url [k_mdl_url_max]
 Series page URL.
char series_title [k_mdl_title_max]
 Series title.
char site_name [k_mdl_name_max]
 Descriptor name.
char site_host [k_mdl_host_max]
 Site host.
char config_path [k_mdl_cfgpath_max]
 Descriptor used.
char summary [k_mdl_summary_max]
 Series synopsis.
char writer [k_mdl_person_max]
 Writer/author.
char artist [k_mdl_person_max]
 Artist/illustrator.
char cover_url [k_mdl_url_max]
 Remote cover URL.
char cover_path [k_mdl_relpath_max]
 Local cover path.
char language [k_mdl_language_max]
 BCP-47 language tag.
mdl_state_reading_direction_t reading_direction
 Page progression.
uint16_t chapter_count
 Chapters recorded.
uint32_t page_rec_count
 Page records recorded.
mdl_chapter_rec_t chapters [k_mdl_max_chapters]
 Per-chapter coverage.
mdl_page_rec_t pages [k_mdl_max_page_recs]
 Per-page identities.

Detailed Description

One series' complete persistent state (declare at file scope).

About 2 MiB (it embeds the chapter table and page pool), so it lives in .bss, not on the stack, exactly like the session and page buffers. One instance serves one series at a time; library-wide commands reuse it series by series.

Invariant
chapter_count <= k_mdl_max_chapters.
page_rec_count <= k_mdl_max_page_recs.
See also
mdl_state_load
mdl_state_save
Since
0.1.0

Definition at line 175 of file mdl_state.h.

Field Documentation

◆ artist

◆ chapter_count

◆ chapters

◆ config_path

◆ cover_path

◆ cover_url

◆ language

char mdl_state_t::language[k_mdl_language_max]

◆ page_rec_count

◆ pages

◆ reading_direction

◆ series_title

◆ series_url

◆ site_host

char mdl_state_t::site_host[k_mdl_host_max]

◆ site_name

char mdl_state_t::site_name[k_mdl_name_max]

◆ summary

◆ version

uint16_t mdl_state_t::version

Schema version.

Definition at line 176 of file mdl_state.h.

Referenced by mdl_state_init(), and priv_mdl_state_valid().

◆ writer


The documentation for this struct was generated from the following file: