about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTFormat.h
diff options
context:
space:
mode:
Diffstat (limited to 'WWW/Library/Implementation/HTFormat.h')
-rw-r--r--WWW/Library/Implementation/HTFormat.h27
1 files changed, 21 insertions, 6 deletions
diff --git a/WWW/Library/Implementation/HTFormat.h b/WWW/Library/Implementation/HTFormat.h
index 3b7403f5..4ee14688 100644
--- a/WWW/Library/Implementation/HTFormat.h
+++ b/WWW/Library/Implementation/HTFormat.h
@@ -344,7 +344,7 @@ extern int HTFileCopy PARAMS((
         HTStream*               sink));
 
 
-#ifdef SOURCE_CACHE
+#ifdef USE_SOURCE_CACHE
 #include <HTChunk.h>
 /*
 
@@ -425,7 +425,7 @@ extern int HTParseFile PARAMS((
         FILE            *fp,
         HTStream*       sink));
 
-#ifdef SOURCE_CACHE
+#ifdef USE_SOURCE_CACHE
 /*
 
 HTParseMem: Parse a document in memory
@@ -444,12 +444,9 @@ extern int HTParseMem PARAMS((
 #endif
 
 #ifdef USE_ZLIB
-
-#ifdef USE_ZLIB
 #include <zlib.h>
-#endif /* USE_ZLIB */
 /*
-HTParseGzFile: Parse a gzipped File through a file pointer
+HTParseGzFile: Parse a gzip'ed File through a file pointer
 
    This routine is called by protocols modules to load an object.  uses
    HTStreamStack and HTGzFileCopy.  Returns HT_LOADED if successful, can also
@@ -464,6 +461,24 @@ extern int HTParseGzFile PARAMS((
 
 #endif /* USE_ZLIB */
 
+#ifdef USE_BZLIB
+#include <bzlib.h>
+/*
+HTParseBzFile: Parse a bzip2'ed File through a file pointer
+
+   This routine is called by protocols modules to load an object.  uses
+   HTStreamStack and HTGzFileCopy.  Returns HT_LOADED if successful, can also
+   return HT_PARTIAL_CONTENT, HT_NO_DATA, or other <0 for failure.
+ */
+extern int HTParseBzFile PARAMS((
+        HTFormat        format_in,
+        HTFormat        format_out,
+        HTParentAnchor  *anchor,
+        BZFILE          *bzfp,
+        HTStream*       sink));
+
+#endif /* USE_BZLIB */
+
 /*
 
 HTNetToText: Convert Net ASCII to local representation