add proxy_ssl request options
[m6w6/ext-http] / src / php_http_encoding_brotli.h
1 /*
2 +--------------------------------------------------------------------+
3 | PECL :: http |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the conditions mentioned |
7 | in the accompanying LICENSE file are met. |
8 +--------------------------------------------------------------------+
9 | Copyright (c) 2004-2014, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13 #ifndef PHP_HTTP_ENCODING_BROTLI_H
14 #define PHP_HTTP_ENCODING_BROTLI_H
15 #if PHP_HTTP_HAVE_LIBBROTLI
16
17 #include <brotli/decode.h>
18 #include <brotli/encode.h>
19
20 extern PHP_MINIT_FUNCTION(http_encoding_brotli);
21
22 PHP_HTTP_API zend_class_entry *php_http_get_enbrotli_stream_class_entry(void);
23 PHP_HTTP_API zend_class_entry *php_http_get_debrotli_stream_class_entry(void);
24
25 PHP_HTTP_API php_http_encoding_stream_ops_t *php_http_encoding_stream_get_enbrotli_ops(void);
26 PHP_HTTP_API php_http_encoding_stream_ops_t *php_http_encoding_stream_get_debrotli_ops(void);
27
28 PHP_HTTP_API ZEND_RESULT_CODE php_http_encoding_enbrotli(int flags, const char *data, size_t data_len, char **encoded, size_t *encoded_len);
29 PHP_HTTP_API ZEND_RESULT_CODE php_http_encoding_debrotli(const char *encoded, size_t encoded_len, char **decoded, size_t *decoded_len);
30
31 #define PHP_HTTP_ENBROTLI_LEVEL_MIN 0x00000001
32 #define PHP_HTTP_ENBROTLI_LEVEL_DEF 0x00000004
33 #define PHP_HTTP_ENBROTLI_LEVEL_MAX 0x0000000b
34
35 #define PHP_HTTP_ENBROTLI_WBITS_MIN 0x000000a0
36 #define PHP_HTTP_ENBROTLI_WBITS_DEF 0x00000160
37 #define PHP_HTTP_ENBROTLI_WBITS_MAX 0x00000180
38
39 #define PHP_HTTP_ENBROTLI_MODE_GENERIC 0x00000000
40 #define PHP_HTTP_ENBROTLI_MODE_TEXT 0x00001000
41 #define PHP_HTTP_ENBROTLI_MODE_FONT 0x00002000
42
43 #endif
44 #endif
45
46 /*
47 * Local variables:
48 * tab-width: 4
49 * c-basic-offset: 4
50 * End:
51 * vim600: noet sw=4 ts=4 fdm=marker
52 * vim<600: noet sw=4 ts=4
53 */
54