summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.h
diff options
context:
space:
mode:
authoravsm <avsm@openbsd.org>2011-07-22 14:10:37 +0000
committeravsm <avsm@openbsd.org>2011-07-22 14:10:37 +0000
commiteba9f5f4814947c303fbe260c20a9bee9ae7f5e0 (patch)
treefcdbb8178d7ecc9417d44956b2792e940fca0a31 /gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.h
parentfix typos, martin pelikan (diff)
downloadwireguard-openbsd-eba9f5f4814947c303fbe260c20a9bee9ae7f5e0.tar.xz
wireguard-openbsd-eba9f5f4814947c303fbe260c20a9bee9ae7f5e0.zip
update to lynx2.8.7rel.2, with local patches:
- restore local lynx.cfg settings [avsm] - fix makefile races [espie] - read/write result checking fixes to avoid unsigned comparisons vs -1 [krw] - initialize all the InputFieldData members correctly [fgsch] - fix socklen_t test to include <sys/types.h> [miod] - fgets(3) returns NULL on error, not 0. No functional change [cloder] ok krw@, tests by Simon Kuhnle and Martin Pieuchot
Diffstat (limited to 'gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.h')
-rw-r--r--gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.h b/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.h
index 38f407f2940..b7a514d6d56 100644
--- a/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.h
+++ b/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.h
@@ -1,4 +1,6 @@
-/* File access in libwww
+/*
+ * $LynxId: HTFile.h,v 1.31 2008/12/07 18:49:53 tom Exp $
+ * File access in libwww
* FILE ACCESS
*
* These are routines for local file access used by WWW browsers and servers.
@@ -221,15 +223,25 @@ extern "C" {
int *rootlen);
/*
- * Determine compression type from the content-type.
+ * Determine compression type from the content-encoding.
*/
- extern CompressFileType HTContentToCompressType(const char *encoding);
-
+ extern CompressFileType HTEncodingToCompressType(const char *encoding);
/*
* Determine compression type from the content-encoding.
*/
- extern CompressFileType HTEncodingToCompressType(const char *encoding);
-
+ extern CompressFileType HTContentTypeToCompressType(const char *ct);
+/*
+ * Determine compression type from the content-type and/or content-encoding.
+ */
+ extern CompressFileType HTContentToCompressType(HTParentAnchor *anchor);
+/*
+ * Determine compression encoding from the compression method.
+ */
+ extern const char *HTCompressTypeToEncoding(CompressFileType method);
+/*
+ * Determine expected file-suffix from the compression method.
+ */
+ extern const char *HTCompressTypeToSuffix(CompressFileType method);
/*
* Determine write access to a file.
*