EPUB_EXPORT char * epub_tit_get_curr_link(struct titerator *tit)
Returns a pointer to the link of the toc iterator's current entry.
EPUB_EXPORT void epub_free_iterator(struct eiterator *it)
Frees the memory held by the given iterator.
EPUB_EXPORT char * epub_tit_get_curr_label(struct titerator *tit)
Returns a pointer to the label of the toc iterator's current entry.
EPUB_EXPORT struct eiterator * epub_get_iterator(struct epub *epub, enum eiterator_type type, int opt)
Returns a book iterator of the requested type for the given epub struct.
EPUB_EXPORT char * epub_it_get_next(struct eiterator *it)
updates the iterator to the next element and returns a pointer to the data.
EPUB_EXPORT int epub_get_data(struct epub *epub, const char *name, char **data)
returns the file with the give filename.
EPUB_EXPORT int epub_get_ocf_file(struct epub *epub, const char *filename, char **data)
returns the file with the give filename
EPUB_EXPORT char * epub_it_get_curr_url(struct eiterator *it)
Returns a pointer to the url of the iterator's current data.
EPUB_EXPORT char * epub_it_get_curr(struct eiterator *it)
Returns a pointer to the iterator's data.
EPUB_EXPORT unsigned char ** epub_get_metadata(struct epub *epub, enum epub_metadata type, int *size)
(Bad xml might cause some of it to be NULL).
EPUB_EXPORT int epub_tit_get_curr_depth(struct titerator *tit)
Returns a pointer to the depth of the toc iterator's current entry.
EPUB_EXPORT int epub_tit_curr_valid(struct titerator *tit)
Returns 1 if the current entry is valid and 0 otherwise.
EPUB_EXPORT int epub_close(struct epub *epub)
This function closes a given epub.
EPUB_EXPORT int epub_tit_next(struct titerator *tit)
updates the iterator to the next element.
EPUB_EXPORT void epub_cleanup()
Cleans up after the library.
EPUB_EXPORT void epub_dump(struct epub *epub)
Debugging function dumping various file information.
EPUB_EXPORT void epub_set_debug(struct epub *epub, int debug)
This function sets the debug level to the given level.
EPUB_EXPORT struct titerator * epub_get_titerator(struct epub *epub, enum titerator_type type, int opt)
Returns a book toc iterator of the requested type for the given epub struct.
EPUB_EXPORT struct epub * epub_open(const char *filename, int debug)
This function accepts an epub filename.
EPUB_EXPORT void epub_free_titerator(struct titerator *tit)
Frees the memory held by the given iterator.
eiterator_type
Ebook Iterator types.
epub_metadata
Metadata types.
titerator_type
Ebook Table Of Content Iterator types.
private struct containting information about the epub file