From 070a26ed403e9a0c330ee7901c5b85394317ef77 Mon Sep 17 00:00:00 2001 From: rootavish Date: Fri, 30 May 2014 00:11:14 +0530 Subject: Added functions to extract epub archive,fixed header In this commit i added functionality to extract an epub archive to a temporary location.Again i tried to keep the design modular. This will be changed as changes come along. I also fixed the header to the standard atril backend header. Performed some code cleaning, naming functions as in the atril style of coding. --- backend/epub/epub-document.h | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) (limited to 'backend/epub/epub-document.h') diff --git a/backend/epub/epub-document.h b/backend/epub/epub-document.h index 157ced04..4b57e178 100644 --- a/backend/epub/epub-document.h +++ b/backend/epub/epub-document.h @@ -1,25 +1,20 @@ -#include -#include -#include -#include +#ifndef __EPUB_DOCUMENT_H__ +#define __EPUB_DOCUMENT_H__ -typedef enum -{ - xmlattribute, - xmlkeyword -}XMLparsereturntype; +#include "ev-document.h" -gboolean openXmlDocument ( const gchar* filename ); +G_BEGIN_DECLS -gboolean checkRoot (xmlChar* rootname); +#define EPUB_TYPE_DOCUMENT (EPUB_document_get_type ()) +#define EPUB_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EPUB_TYPE_DOCUMENT, ePubDocument)) +#define EPUB_IS_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EPUB_TYPE_DOCUMENT)) -void parseChildren (xmlNodePtr parent, - xmlChar* parserfor, - XMLparsereturntype rettype, - xmlChar* attributename ); +typedef struct _ePubDocument ePubDocument; -xmlChar* parseXMLchildren (xmlChar* parserfor, - XMLparsereturntype rettype, - xmlChar* attributename ); +GType ePub_document_get_type (void) G_GNUC_CONST; -void xmlFreeAll(); \ No newline at end of file +G_MODULE_EXPORT GType register_atril_backend (GTypeModule *module); + +G_END_DECLS + +#endif /* __EPUB_DOCUMENT_H__ */ -- cgit v1.2.1