diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-01-21 19:39:33 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-01-21 19:39:33 +0100 |
commit | 9a8071e7e6c7c8c9f73bd54d32d2ce6b62b1ba8b (patch) | |
tree | 6141d6c14bd0815cb311aa01dd78acb316c50421 /include/lib/deflate.h | |
parent | 0f0a58f94f65d3c84e1ab46d91e21f776507e080 (diff) |
rename udeflate to deflate
Diffstat (limited to 'include/lib/deflate.h')
-rw-r--r-- | include/lib/deflate.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/lib/deflate.h b/include/lib/deflate.h new file mode 100644 index 0000000..c592d42 --- /dev/null +++ b/include/lib/deflate.h @@ -0,0 +1,21 @@ +/* + * Copyright 2021 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include <stdint.h> + +#define DEFLATE_ERR_INPUT_LENGTH (-1) +#define DEFLATE_ERR_METHOD (-2) +#define DEFLATE_ERR_FDICT (-3) +#define DEFLATE_ERR_BLOCK (-4) +#define DEFLATE_ERR_CHECKSUM (-5) +#define DEFLATE_ERR_OUTPUT_LENGTH (-6) +#define DEFLATE_ERR_FCHECK (-7) +#define DEFLATE_ERR_NLEN (-8) + +int8_t deflate(unsigned char *input_buf, uint16_t input_len, + unsigned char *output_buf, uint16_t output_len); +int8_t deflate_zlib(unsigned char *input_buf, uint16_t input_len, + unsigned char *output_buf, uint16_t output_len); |