X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=cgi.h;h=d9fe6a7e5afbb5739234b3423c0653cb93156d05;hb=ca0f31176a6b18fd744f8711adb75a65cebf62d0;hp=4cd21fcf9f686748066348d4d97501828daf9a03;hpb=291f91036dabb40b2323a118dd34c368ae2c6848;p=privoxy.git diff --git a/cgi.h b/cgi.h index 4cd21fcf..d9fe6a7e 100644 --- a/cgi.h +++ b/cgi.h @@ -1,6 +1,6 @@ #ifndef CGI_H_INCLUDED #define CGI_H_INCLUDED -#define CGI_H_VERSION "$Id: cgi.h,v 1.37 2009/06/11 11:44:25 fabiankeil Exp $" +#define CGI_H_VERSION "$Id: cgi.h,v 1.39 2011/07/03 17:55:23 fabiankeil Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgi.h,v $ @@ -102,7 +102,12 @@ extern jb_err get_string_param(const struct map *parameters, extern char get_char_param(const struct map *parameters, const char *param_name); #ifdef FEATURE_COMPRESSION -extern char *compress_buffer(char *buffer, size_t *buffer_length); +/* + * Minimum length which a buffer has to reach before + * we bother to (re-)compress it. Completely arbitrary. + */ +extern const size_t LOWER_LENGTH_LIMIT_FOR_COMPRESSION; +extern char *compress_buffer(char *buffer, size_t *buffer_length, int compression_level); #endif /*