918
|
|
|
chtsanti |
6 years ago
|
|
|
917
|
|
|
chtsanti |
6 years ago
|
|
|
916
|
|
|
chtsanti |
6 years ago
|
|
|
915
|
|
|
chtsanti |
6 years ago
|
|
|
914
|
|
|
chtsanti |
6 years ago
|
|
|
913
|
|
|
chtsanti |
6 years ago
|
|
|
912
|
|
|
chtsanti |
6 years ago
|
|
|
911
|
|
|
chtsanti |
6 years ago
|
|
|
910
|
|
|
chtsanti |
6 years ago
|
|
|
909
|
|
|
chtsanti |
6 years ago
|
|
|
908
|
|
|
chtsanti |
6 years ago
|
|
|
907
|
|
|
chtsanti |
6 years ago
|
|
|
906
|
|
|
chtsanti |
6 years ago
|
|
|
905
|
|
|
chtsanti |
6 years ago
|
|
|
904
|
|
|
chtsanti |
6 years ago
|
|
|
903
|
|
Add encode.c compression support Author: Jeffrey Merkey <jeffmerkey@gmail.com> This patch adds the file encode.c which contains the following compresion functions to support compression for outbound web pages:
CI_DECLARE_FUNC(int) ci_generic_compress_to_membuf(int encoding_format, const char *inbuf, size_t inlen, struct ci_membuf *outbuf, ci_off_t max_size); CI_DECLARE_FUNC(int) ci_generic_compress_to_simple_file(int encoding_format, const char *inbuf, size_t inlen, struct ci_simple_file *outbuf, ci_off_t max_size); CI_DECLARE_FUNC(int) ci_deflate_to_membuf(const char *inbuf, size_t inlen, struct ci_membuf *outbuf, ci_off_t max_size); CI_DECLARE_FUNC(int) ci_deflate_to_simple_file(const char *inbuf, size_t inlen, struct ci_simple_file *outbuf, ci_off_t max_size); CI_DECLARE_FUNC(int) ci_gzip_to_membuf(const char *inbuf, size_t inlen, struct ci_membuf *outbuf, ci_off_t max_size); CI_DECLARE_FUNC(int) ci_gzip_to_simple_file(const char *inbuf, size_t inlen, struct ci_simple_file *outbuf, ci_off_t max_size); CI_DECLARE_FUNC(int) ci_bzzip_to_membuf(const char *inbuf, size_t inlen, struct ci_membuf *outbuf, ci_off_t max_size); CI_DECLARE_FUNC(int) ci_bzzip_to_simple_file(const char *inbuf, size_t inlen, struct ci_simple_file *outbuf, ci_off_t max_size); CI_DECLARE_FUNC(int) ci_brdeflate_to_membuf(const char *inbuf, size_t inlen, struct ci_membuf *outbuf, ci_off_t max_size); CI_DECLARE_FUNC(int) ci_brdeflate_to_simple_file(const char *inbuf, size_t inlen, struct ci_simple_file *outbuf, ci_off_t max_size);
The following defines have been added to the simple_api.h include: enum CI_COMPRESS_ERRORS { CI_COMP_ERR_BOMB = -4, CI_COMP_ERR_CORRUPT = -3, CI_COMP_ERR_OUTPUT = -2, CI_COMP_ERR_ERROR = -1, CI_COMP_ERR_NONE = 0, CI_COMP_OK = 1, };
Jeff
|
chtsanti |
6 years ago
|
|
|
902
|
|
|
chtsanti |
6 years ago
|
|
|
901
|
|
|
chtsanti |
6 years ago
|
|
|
900
|
|
|
chtsanti |
6 years ago
|
|
|
899
|
|
|
chtsanti |
6 years ago
|
|
|