ZEReader 0.1.0
A Zephyr-based E-Book-Reader
Loading...
Searching...
No Matches
current_book_t Struct Reference

Represents the current book read. More...

#include <epub.h>

Data Fields

uint16_t num_chapters
chapter_list_tchapter_list
chapter_list_tcurrent_chapter
char page [1400]
char pretty_page [1400]
char * chapter_filename
char * root_dir
struct { 
   char *   title 
   size_t   chapter 
   size_t   file_offset 
state

Detailed Description

Represents the current book read.

Field Documentation

◆ chapter

size_t current_book_t::chapter

The currently read chapter.

◆ chapter_filename

char* current_book_t::chapter_filename

The current chapter's filename.

◆ chapter_list

chapter_list_t* current_book_t::chapter_list

A pointer to the book's chapter list.

◆ current_chapter

chapter_list_t* current_book_t::current_chapter

A pointer to the currently active chapter.

◆ file_offset

size_t current_book_t::file_offset

The current file offset within the chapter file.

◆ num_chapters

uint16_t current_book_t::num_chapters

The number of the book's chapters.

◆ page

char current_book_t::page[1400]

The currently read raw page chunk.

◆ pretty_page

char current_book_t::pretty_page[1400]

The parsed and prettified page chunk.

◆ root_dir

char* current_book_t::root_dir

The current book's root directory path.

◆ [struct]

struct { ... } current_book_t::state

The current book's state.

◆ title

char* current_book_t::title

The currently read book's title.

Use to find and open the right book at rebooting the Reader.


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