X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_encoding_api.h;h=7e235c7bc739cfabee25ebab86745d0261f69136;hp=f559ee984e339f4c20cb7aeb87ec7ea68be89cee;hb=2be22e84d69e07de423521f20965363a706636ac;hpb=9d4113f62a7a8fe2fe3879b94a3712d11cec8726 diff --git a/php_http_encoding_api.h b/php_http_encoding_api.h index f559ee9..7e235c7 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) @@ -35,7 +38,8 @@ PHP_HTTP_API STATUS _http_encoding_compress(int level, const char *data, size_t #define http_encoding_uncompress(d, dl, r, rl) _http_encoding_uncompress((d), (dl), (r), (rl) TSRMLS_CC) PHP_HTTP_API STATUS _http_encoding_uncompress(const char *data, size_t data_len, char **decoded, size_t *decoded_len TSRMLS_DC); -#endif +#endif /* HTTP_HAVE_ZLIB */ + #endif /*