X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=project.h;h=dd38cf88f9162355370ded53a30d9d3cff0cdead;hp=8b0e68cd0cfe2b15a692ef5ee48abb4a2c8007ba;hb=2f946641e6706380d376f6946f30ebe239cc94bc;hpb=1b2cc4af84a3bc3ba01ba913ca30012c9efa31d8 diff --git a/project.h b/project.h index 8b0e68cd..dd38cf88 100644 --- a/project.h +++ b/project.h @@ -1,7 +1,7 @@ #ifndef PROJECT_H_INCLUDED #define PROJECT_H_INCLUDED /** Version string. */ -#define PROJECT_H_VERSION "$Id: project.h,v 1.163 2011/02/19 13:58:48 fabiankeil Exp $" +#define PROJECT_H_VERSION "$Id: project.h,v 1.164 2011/04/19 13:00:47 fabiankeil Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/project.h,v $ @@ -187,6 +187,12 @@ typedef int jb_err; */ #define CGI_PARAM_LEN_MAX 500U +/** + * Minimum length which a buffer has to reach before + * Privoxy bothers to (re-)compress it. Completely arbitrary. + */ +#define LOWER_LENGTH_LIMIT_FOR_COMRPESSION 1024U + /** * Buffer size for capturing struct hostent data in the * gethostby(name|addr)_r library calls. Since we don't @@ -810,6 +816,17 @@ struct reusable_connection */ #define CSP_FLAG_REUSED_CLIENT_CONNECTION 0x00100000U +/** + * Flag for csp->flags: Set if the supports deflate compression. + */ +#define CSP_FLAG_CLIENT_SUPPORTS_DEFLATE 0x00200000U + +/** + * Flag for csp->flags: Set if the content has been deflated by Privoxy + */ +#define CSP_FLAG_BUFFERED_CONTENT_DEFLATED 0x00400000U + + /* * Flags for use in return codes of child processes */