libmobi
C library for handling MOBI format ebook documents
Data Fields

Main structure holding all metadata and unparsed records data. More...

#include <mobi.h>

Data Fields

bool use_kf8
 
uint32_t kf8_boundary_offset
 
unsigned char * drm_key
 
MOBIPdbHeaderph
 
MOBIRecord0Headerrh
 
MOBIMobiHeadermh
 
MOBIExthHeadereh
 
MOBIPdbRecordrec
 
struct MOBIDatanext
 

Detailed Description

Main structure holding all metadata and unparsed records data.

In case of hybrid KF7/KF8 file there are two Records 0. In such case MOBIData is a circular linked list of two independent records, one structure per each Record 0 header. Records data (MOBIPdbRecord structure) is not duplicated in such case - each struct holds same pointers to all records data.

Examples
common.c, mobimeta.c, and mobitool.c.

Field Documentation

◆ drm_key

unsigned char* MOBIData::drm_key

key for decryption, NULL if not set

◆ eh

MOBIExthHeader* MOBIData::eh

Linked list of EXTH records or NULL if not loaded

Examples
common.c.

◆ kf8_boundary_offset

uint32_t MOBIData::kf8_boundary_offset

Set to KF8 boundary rec number if present, otherwise: MOBI_NOTSET

◆ mh

MOBIMobiHeader* MOBIData::mh

MOBI header structure or NULL if not loaded

Examples
common.c, and mobitool.c.

◆ next

struct MOBIData* MOBIData::next

Pointer to the other part of hybrid file or NULL if not a hybrid file

Examples
common.c.

◆ ph

MOBIPdbHeader* MOBIData::ph

Palmdoc database header structure or NULL if not loaded

Examples
common.c, and mobitool.c.

◆ rec

MOBIPdbRecord* MOBIData::rec

Linked list of palmdoc database records or NULL if not loaded

Examples
mobitool.c.

◆ rh

MOBIRecord0Header* MOBIData::rh

Record0 header structure or NULL if not loaded

Examples
common.c, and mobitool.c.

◆ use_kf8

bool MOBIData::use_kf8

Flag: if set to true (default), KF8 part of hybrid file is parsed, if false - KF7 part will be parsed


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