diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2022-03-30 00:29:50 +0000 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2022-03-30 00:29:50 +0000 |
commit | 04fd5be50c369e986053e7bfcc4b9eb2fa5ac937 (patch) | |
tree | 840e3e3dca02952345abbb2614b27ddbb0025bd5 /WWW/Library/Implementation/HTFormat.h | |
parent | baa72f144c15896a40c794b967854f0508459a20 (diff) | |
download | lynx-snapshots-04fd5be50c369e986053e7bfcc4b9eb2fa5ac937.tar.gz |
snapshot of project "lynx", label v2-9-0dev_10d
Diffstat (limited to 'WWW/Library/Implementation/HTFormat.h')
-rw-r--r-- | WWW/Library/Implementation/HTFormat.h | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/WWW/Library/Implementation/HTFormat.h b/WWW/Library/Implementation/HTFormat.h index 20e718a8..76a8b253 100644 --- a/WWW/Library/Implementation/HTFormat.h +++ b/WWW/Library/Implementation/HTFormat.h @@ -1,5 +1,5 @@ /* - * $LynxId: HTFormat.h,v 1.37 2020/01/21 22:02:59 tom Exp $ + * $LynxId: HTFormat.h,v 1.38 2022/03/28 08:09:44 tom Exp $ * * HTFormat: The format manager in the WWW Library * MANAGE DIFFERENT DOCUMENT FORMATS @@ -229,10 +229,12 @@ The HTPresentation and HTConverter types ,encodingDEFLATE = 2 ,encodingCOMPRESS = 4 ,encodingBZIP2 = 8 + ,encodingBROTLI = 16 ,encodingALL = (encodingGZIP + encodingDEFLATE + encodingCOMPRESS - + encodingBZIP2) + + encodingBZIP2 + + encodingBROTLI) } AcceptEncoding; /* @@ -512,7 +514,7 @@ HTParseZzFile: Parse a deflate'd File through a file pointer 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 + HTStreamStack and HTBzFileCopy. Returns HT_LOADED if successful, can also return HT_PARTIAL_CONTENT, HT_NO_DATA, or other <0 for failure. */ extern int HTParseBzFile(HTFormat format_in, @@ -523,6 +525,22 @@ HTParseBzFile: Parse a bzip2'ed File through a file pointer #endif /* USE_BZLIB */ +#ifdef USE_BROTLI +/* +HTParseBzFile: Parse a brotli'ed File through a file pointer + + This routine is called by protocols modules to load an object. uses + HTStreamStack and HTBrFileCopy. Returns HT_LOADED if successful, can also + return HT_PARTIAL_CONTENT, HT_NO_DATA, or other <0 for failure. + */ + extern int HTParseBrFile(HTFormat format_in, + HTFormat format_out, + HTParentAnchor *anchor, + FILE * brfp, + HTStream *sink); + +#endif /* USE_BROTLI */ + /* HTNetToText: Convert Net ASCII to local representation |