diff options
author | rootavish <[email protected]> | 2014-05-30 00:11:14 +0530 |
---|---|---|
committer | rootavish <[email protected]> | 2014-05-30 00:11:14 +0530 |
commit | 070a26ed403e9a0c330ee7901c5b85394317ef77 (patch) | |
tree | 89e5d8ac085a519672b673d276dbc1837d3e96f0 /backend/epub/epub-document.h | |
parent | 0a4d3f34a8aee74019759ace24f84672a98122b4 (diff) | |
download | atril-070a26ed403e9a0c330ee7901c5b85394317ef77.tar.bz2 atril-070a26ed403e9a0c330ee7901c5b85394317ef77.tar.xz |
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.
Diffstat (limited to 'backend/epub/epub-document.h')
-rw-r--r-- | backend/epub/epub-document.h | 33 |
1 files changed, 14 insertions, 19 deletions
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 <gtk/gtk.h> -#include <glib.h> -#include <libxml/parser.h> -#include <libxml/xmlmemory.h> +#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__ */ |