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) void _ocf_close(struct ocf *ocf)
void _list_dump_guide(struct guide *guide)
void _list_free_manifest(struct manifest *manifest)
void _list_dump_id(struct id *id)
int _ocf_parse_container(struct ocf *ocf)
void _list_free_toc_label(struct tocLabel *tl)
void _ocf_dump(struct ocf *ocf)
struct tocCategory * navMap
const char _epub_error_oom[]
void _opf_close(struct opf *opf)
void _list_free_id(struct id *id)
void _list_free_tours(struct tour *tour)
void _list_dump_string(char *string)
struct tocCategory * navList
int _ocf_parse_mimetype(struct ocf *ocf)
void _list_free_guide(struct guide *guide)
struct manifest * _opf_manifest_get_by_id(struct opf *opf, xmlChar *id)
xmlChar * _opf_label_get_by_lang(struct opf *opf, listPtr label, char *lang)
char * _ocf_root_fullpath_by_type(struct ocf *ocf, const char *type)
void _opf_parse_spine(struct opf *opf, xmlTextReaderPtr reader)
void _list_dump_tour(struct tour *tour)
void _opf_parse_toc(struct opf *opf, char *tocStr, int size)
void _list_dump_date(struct date *date)
int _ocf_check_file(struct ocf *ocf, const char *filename)
void char * epub_last_errStr(struct epub *epub)
void _opf_free_toc_category(struct tocCategory *tc)
int _list_cmp_root_by_mediatype(struct root *root1, struct root *root2)
xmlChar * _opf_label_get_by_doc_lang(struct opf *opf, listPtr label)
void _opf_parse_pagelist(struct opf *opf, xmlTextReaderPtr reader)
struct zip * _ocf_open(struct ocf *ocf, const char *fileName)
struct metadata * metadata
#define PRINTF_FORMAT(si, ftc)
int _list_cmp_toc_by_playorder(struct tocItem *t1, struct tocItem *t2)
int _list_cmp_manifest_by_id(struct manifest *m1, struct manifest *m2)
struct toc * _opf_init_toc()
void _opf_parse_manifest(struct opf *opf, xmlTextReaderPtr reader)
char * _ocf_root_by_type(struct ocf *ocf, const char *type)
struct tocLabel * _opf_parse_navlabel(struct opf *opf, xmlTextReaderPtr reader)
void _list_free_meta(struct meta *meta)
void _list_free_spine(struct spine *spine)
void _opf_parse_tours(struct opf *opf, xmlTextReaderPtr reader)
void _list_dump_spine(struct spine *spine)
void _opf_parse_navlist(struct opf *opf, xmlTextReaderPtr reader)
titerator_type
Ebook Table Of Content Iterator types.
void _opf_parse_guide(struct opf *opf, xmlTextReaderPtr reader)
void _list_free_root(struct root *data)
void _opf_free_toc(struct toc *toc)
private struct containting information about the epub file
void _list_dump_root(struct root *root)
void _opf_parse_navmap(struct opf *opf, xmlTextReaderPtr reader)
void _list_free_creator(struct creator *data)
void _epub_print_debug(struct epub *epub, int debug, const char *format,...) PRINTF_FORMAT(3
void _opf_parse_metadata(struct opf *opf, xmlTextReaderPtr reader)
void _list_dump_creator(struct creator *data)
int _list_cmp_label_by_lang(struct tocLabel *t1, struct tocLabel *t2)
struct tocCategory * pageList
struct ocf * _ocf_parse(struct epub *epub, const char *filename)
void _list_free_date(struct date *date)
struct opf * _opf_parse(struct epub *epub, char *opfStr)
void _list_free_toc_item(struct tocItem *ti)
eiterator_type
Ebook Iterator types.
void _opf_dump(struct opf *opf)
struct epub * epub_open(const char *filename, int debug)
void _list_dump_meta(struct meta *meta)
int _ocf_get_data_file(struct ocf *ocf, const char *filename, char **fileStr)
int _ocf_get_file(struct ocf *ocf, const char *filename, char **fileStr)
struct tocCategory * _opf_init_toc_category()