13#include <libxml/xmlreader.h>
21# define PATH_SEPARATOR '\\'
23# define PATH_SEPARATOR '/'
27# define PRINTF_FORMAT(si, ftc) __attribute__ ((format (printf, si, ftc)))
29# define PRINTF_FORMAT(si, ftc)
34# define strdup _strdup
40#define METAINFO_DIR "META-INF"
41#define MIMETYPE_FILENAME "mimetype"
42#define CONTAINER_FILENAME "container.xml"
43#define MANIFEST_FILENAME "manifest.xml"
44#define METADATA_FILENAME "metadata.xml"
45#define SIGNATURES_FILENAME "signatures.xml"
46#define ENCRYPTION_FILENAME "encryption.xml"
47#define RIGHTS_FILENAME "rights.xml"
197#define _epub_err_set_const_str(_err, _err_string) \
199 (_err)->str = _err_string; \
202#define _epub_err_set_str(_err, _err_string, _err_string_len) \
204 strncpy((_err)->lastStr, _err_string, _err_string_len); \
205 (_err)->len = _err_string_len; \
206 (_err)->str = (_err)->lastStr; \
209#define _epub_err_set_oom(_epub_err) _epub_err_set_const_str(_epub_err, _epub_error_oom)
eiterator_type
Ebook Iterator types.
titerator_type
Ebook Table Of Content Iterator types.
#define PRINTF_FORMAT(si, ftc)
int _ocf_check_file(struct ocf *ocf, const char *filename)
int _ocf_parse_container(struct ocf *ocf)
void _opf_parse_metadata(struct opf *opf, xmlTextReaderPtr reader)
char * _ocf_root_fullpath_by_type(struct ocf *ocf, const char *type)
void _ocf_close(struct ocf *ocf)
void _opf_parse_pagelist(struct opf *opf, xmlTextReaderPtr reader)
void _list_free_guide(struct guide *guide)
void _opf_dump(struct opf *opf)
void _list_free_manifest(struct manifest *manifest)
struct epub * epub_open(const char *filename, int debug)
void _list_free_tours(struct tour *tour)
void _list_free_creator(struct creator *data)
void _list_dump_guide(struct guide *guide)
struct tocLabel * _opf_parse_navlabel(struct opf *opf, xmlTextReaderPtr reader)
void _list_free_id(struct id *id)
void _opf_parse_manifest(struct opf *opf, xmlTextReaderPtr reader)
struct zip * _ocf_open(struct ocf *ocf, const char *fileName)
int _ocf_get_data_file(struct ocf *ocf, const char *filename, char **fileStr)
void _list_free_date(struct date *date)
void _opf_parse_spine(struct opf *opf, xmlTextReaderPtr reader)
int _list_cmp_root_by_mediatype(struct root *root1, struct root *root2)
void _list_free_root(struct root *data)
void _opf_close(struct opf *opf)
int _list_cmp_label_by_lang(struct tocLabel *t1, struct tocLabel *t2)
void _opf_free_toc_category(struct tocCategory *tc)
void _list_free_toc_item(struct tocItem *ti)
int _ocf_get_file(struct ocf *ocf, const char *filename, char **fileStr)
void _list_free_toc_label(struct tocLabel *tl)
void _epub_print_debug(struct epub *epub, int debug, const char *format,...) PRINTF_FORMAT(3
void _list_free_meta(struct meta *meta)
void _opf_free_toc(struct toc *toc)
int _list_cmp_manifest_by_id(struct manifest *m1, struct manifest *m2)
void _list_free_spine(struct spine *spine)
void _opf_parse_guide(struct opf *opf, xmlTextReaderPtr reader)
void _list_dump_id(struct id *id)
void _list_dump_root(struct root *root)
void _ocf_dump(struct ocf *ocf)
const char _epub_error_oom[]
void _list_dump_meta(struct meta *meta)
struct manifest * _opf_manifest_get_by_id(struct opf *opf, xmlChar *id)
void _list_dump_tour(struct tour *tour)
xmlChar * _opf_label_get_by_lang(struct opf *opf, listPtr label, char *lang)
int _ocf_parse_mimetype(struct ocf *ocf)
void _opf_parse_navlist(struct opf *opf, xmlTextReaderPtr reader)
void char * epub_last_errStr(struct epub *epub)
struct ocf * _ocf_parse(struct epub *epub, const char *filename)
char * _ocf_root_by_type(struct ocf *ocf, const char *type)
struct opf * _opf_parse(struct epub *epub, char *opfStr)
struct toc * _opf_init_toc()
void _list_dump_string(char *string)
void _opf_parse_navmap(struct opf *opf, xmlTextReaderPtr reader)
xmlChar * _opf_label_get_by_doc_lang(struct opf *opf, listPtr label)
void _opf_parse_toc(struct opf *opf, char *tocStr, int size)
void _list_dump_spine(struct spine *spine)
int _list_cmp_toc_by_playorder(struct tocItem *t1, struct tocItem *t2)
void _opf_parse_tours(struct opf *opf, xmlTextReaderPtr reader)
struct tocCategory * _opf_init_toc_category()
void _list_dump_date(struct date *date)
void _list_dump_creator(struct creator *data)
private struct containting information about the epub file
struct metadata * metadata
struct tocCategory * navMap
struct tocCategory * pageList
struct tocCategory * navList