X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_encoding_api.h;h=92a2f9a7d58977eaf3c1ad203b22a099b5a2b8e1;hp=f559ee984e339f4c20cb7aeb87ec7ea68be89cee;hb=f6a58b4f97105ba3c3177116c18672f1b8ba4179;hpb=9d4113f62a7a8fe2fe3879b94a3712d11cec8726 diff --git a/php_http_encoding_api.h b/php_http_encoding_api.h index f559ee9..92a2f9a 100644 --- a/php_http_encoding_api.h +++ b/php_http_encoding_api.h @@ -18,10 +18,13 @@ #ifndef PHP_HTTP_ENCODING_API_H #define PHP_HTTP_ENCODING_API_H -#ifdef HTTP_HAVE_ZLIB - #include "php_http_std_defs.h" +#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); + +#ifdef HTTP_HAVE_ZLIB + #define http_encoding_gzencode(l, d, dl, r, rl) _http_encoding_gzencode((l), (d), (dl), (r), (rl) TSRMLS_CC) PHP_HTTP_API STATUS _http_encoding_gzencode(int level, const char *data, size_t data_len, char **encoded, size_t *encoded_len TSRMLS_DC); #define http_encoding_gzdecode(d, dl, r, rl) _http_encoding_gzdecode((d), (dl), (r), (rl) TSRMLS_CC)