about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTFile.h
diff options
context:
space:
mode:
Diffstat (limited to 'WWW/Library/Implementation/HTFile.h')
-rw-r--r--WWW/Library/Implementation/HTFile.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/WWW/Library/Implementation/HTFile.h b/WWW/Library/Implementation/HTFile.h
index 8c522b64..0c69bb42 100644
--- a/WWW/Library/Implementation/HTFile.h
+++ b/WWW/Library/Implementation/HTFile.h
@@ -192,20 +192,34 @@ extern void LYGetFileInfo(const char *filename,
 extern float HTFileValue(const char *filename);
 
 /*
- *  Determine compression type from file name, by looking at its suffix.
+ *  Known compression types.
  */
 typedef enum {
     cftNone
     ,cftCompress
     ,cftGzip
     ,cftBzip2
+    ,cftDeflate
 } CompressFileType;
 
+/*
+ *  Determine compression type from file name, by looking at its suffix.
+ */
 extern CompressFileType HTCompressFileType(char *filename,
 					   char *dots,
 					   char **suffix);
 
 /*
+ *  Determine compression type from the content-type.
+ */
+extern CompressFileType HTContentToCompressType(const char *encoding);
+
+/*
+ *  Determine compression type from the content-encoding.
+ */
+extern CompressFileType HTEncodingToCompressType(const char *encoding);
+
+/*
  *  Determine write access to a file.
  *
  *  ON EXIT,
@@ -276,6 +290,7 @@ typedef enum {
     ,ppCOPY
     ,ppCSWING
     ,ppGZIP
+    ,ppINFLATE
     ,ppINSTALL
     ,ppMKDIR
     ,ppMV