|
libmobi
C library for handling MOBI format ebook documents
|
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 |
| MOBIPdbHeader * | ph |
| MOBIRecord0Header * | rh |
| MOBIMobiHeader * | mh |
| MOBIExthHeader * | eh |
| MOBIPdbRecord * | rec |
| struct MOBIData * | next |
| void * | internals |
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.
| unsigned char* MOBIData::drm_key |
| MOBIExthHeader* MOBIData::eh |
Linked list of EXTH records or NULL if not loaded
| void* MOBIData::internals |
Used internally
| 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
| struct MOBIData* MOBIData::next |
Pointer to the other part of hybrid file or NULL if not a hybrid file
| MOBIPdbHeader* MOBIData::ph |
Palmdoc database header structure or NULL if not loaded
| MOBIPdbRecord* MOBIData::rec |
Linked list of palmdoc database records or NULL if not loaded
| MOBIRecord0Header* MOBIData::rh |
Record0 header structure or NULL if not loaded
| bool MOBIData::use_kf8 |
Flag: if set to true (default), KF8 part of hybrid file is parsed, if false - KF7 part will be parsed