libmobi
C library for handling MOBI format ebook documents
read.h
Go to the documentation of this file.
1 
11 #ifndef libmobi_read_h
12 #define libmobi_read_h
13 
14 #include "config.h"
15 #include "mobi.h"
16 #include "memory.h"
17 #include "compression.h"
18 
19 #define MOBI_EXTH_MAXCNT 1024
20 
21 MOBI_RET mobi_parse_fdst(const MOBIData *m, MOBIRawml *rawml);
23 MOBI_RET mobi_load_pdbheader(MOBIData *m, FILE *file);
24 MOBI_RET mobi_load_reclist(MOBIData *m, FILE *file);
25 MOBI_RET mobi_load_rec(MOBIData *m, FILE *file);
26 MOBI_RET mobi_load_recdata(MOBIPdbRecord *rec, FILE *file);
27 
28 #endif
MOBI_RET
Error codes returned by functions.
Definition: mobi.h:59
Libmobi main header file.
MOBI_RET mobi_load_pdbheader(MOBIData *m, FILE *file)
Read palm database header from file into MOBIData structure (MOBIPdbHeader)
Definition: read.c:28
MOBI_RET mobi_load_recdata(MOBIPdbRecord *rec, FILE *file)
Read record data from file into MOBIPdbRecord structure.
Definition: read.c:174
MOBI_RET mobi_load_reclist(MOBIData *m, FILE *file)
Read list of database records from file into MOBIData structure (MOBIPdbRecord)
Definition: read.c:78
MOBI_RET mobi_parse_fdst(const MOBIData *m, MOBIRawml *rawml)
Parse FDST record into MOBIRawml structure (MOBIFdst member)
Definition: read.c:769
MOBI_RET mobi_load_rec(MOBIData *m, FILE *file)
Read record data and size from file into MOBIData structure (MOBIPdbRecord)
Definition: read.c:131
MOBI_RET mobi_parse_huffdic(const MOBIData *m, MOBIHuffCdic *cdic)
Parse a set of HUFF and CDIC records into MOBIHuffCdic structure.
Definition: read.c:707
Main structure holding all metadata and unparsed records data.
Definition: mobi.h:381
Parsed data from HUFF and CDIC records needed to unpack huffman compressed text.
Definition: compression.h:29
Metadata and data of a record. All records form a linked list.
Definition: mobi.h:251
Main structure containing reconstructed source parts and indices.
Definition: mobi.h:464