branch off v1 as R_1_7
[m6w6/ext-http] / php_http_encoding_api.h
index 918c01316282c45f5069f144faf7297d88cfb813..ca4ac8dcc889a432abca0088f48771431093c57b 100644 (file)
@@ -6,7 +6,7 @@
     | modification, are permitted provided that the conditions mentioned |
     | in the accompanying LICENSE file are met.                          |
     +--------------------------------------------------------------------+
-    | Copyright (c) 2004-2006, Michael Wallner <mike@php.net>            |
+    | Copyright (c) 2004-2010, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
@@ -18,8 +18,8 @@
 #define http_encoding_dechunk(e, el, d, dl) _http_encoding_dechunk((e), (el), (d), (dl) TSRMLS_CC)
 PHP_HTTP_API const char *_http_encoding_dechunk(const char *encoded, size_t encoded_len, char **decoded, size_t *decoded_len TSRMLS_DC);
 
-#define http_encoding_response_start(cl) _http_encoding_response_start((cl) TSRMLS_CC)
-PHP_HTTP_API int _http_encoding_response_start(size_t content_length TSRMLS_DC);
+#define http_encoding_response_start(cl, i) _http_encoding_response_start((cl), (i) TSRMLS_CC)
+PHP_HTTP_API int _http_encoding_response_start(size_t content_length, zend_bool ignore_http_ohandler TSRMLS_DC);
 
 #ifdef HTTP_HAVE_ZLIB
 
@@ -47,7 +47,7 @@ typedef enum _http_encoding_type_t {
 
 #define HTTP_DEFLATE_LEVEL_DEF                 0x00000000
 #define HTTP_DEFLATE_LEVEL_MIN                 0x00000001
-#define HTTP_DEFLATE_LEVEL_MAX                 0x00000002
+#define HTTP_DEFLATE_LEVEL_MAX                 0x00000009
 #define HTTP_DEFLATE_TYPE_ZLIB                 0x00000000
 #define HTTP_DEFLATE_TYPE_GZIP                 0x00000010
 #define HTTP_DEFLATE_TYPE_RAW                  0x00000020