libmobi
C library for handling MOBI format ebook documents
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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

unsigned char* MOBIData::drm_key

key for decryption, NULL if not set

MOBIExthHeader* MOBIData::eh

Linked list of EXTH records or NULL if not loaded

Examples:
common.c.
uint32_t MOBIData::kf8_boundary_offset

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

MOBIMobiHeader* MOBIData::mh

MOBI header structure or NULL if not loaded

Examples:
common.c, and mobitool.c.
struct MOBIData* MOBIData::next

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

Examples:
common.c.
MOBIPdbHeader* MOBIData::ph

Palmdoc database header structure or NULL if not loaded

Examples:
common.c, and mobitool.c.
MOBIPdbRecord* MOBIData::rec

Linked list of palmdoc database records or NULL if not loaded

Examples:
mobitool.c.
MOBIRecord0Header* MOBIData::rh

Record0 header structure or NULL if not loaded

Examples:
common.c, and mobitool.c.
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: