summaryrefslogtreecommitdiff
path: root/src/info2html/data.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/info2html/data.h')
-rw-r--r--src/info2html/data.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/info2html/data.h b/src/info2html/data.h
index 60a2ce74..61e17e0c 100644
--- a/src/info2html/data.h
+++ b/src/info2html/data.h
@@ -1,5 +1,11 @@
#ifndef DATA_H
#define DATA_H
+#include <config.h>
+#include <zlib.h>
+#ifdef HAVE_LIBBZ2
+#include <bzlib.h>
+#endif
+#include <glib.h>
/* data.h - first cut at data structures for info2html filter */
/* many of these are motivated by the source code to the 'info' program */
@@ -45,6 +51,22 @@ struct info_menu_entry{
struct info_menu_entry *next;
};
+
+enum file_type {GZIP, BZIP2 };
+#define READ_BUF_SIZE (32 * 1024)
+
+typedef struct{
+ enum file_type type;
+ gzFile *gzfile;
+ char *buffer;
+ int eof;
+ gsize size;
+ gsize pos;
+#ifdef HAVE_LIBBZ2
+ BZFILE *bzfile;
+#endif
+} ReadBuf;
+
#define INFO_FF '\014'
#define INFO_COOKIE '\037'