diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/lib/deflate.h | 21 | ||||
-rw-r--r-- | include/lib/udeflate.h | 21 |
2 files changed, 21 insertions, 21 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); diff --git a/include/lib/udeflate.h b/include/lib/udeflate.h deleted file mode 100644 index 8926cfa..0000000 --- a/include/lib/udeflate.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright 2021 Daniel Friesel - * - * SPDX-License-Identifier: BSD-2-Clause - */ - -#include <stdint.h> - -#define UDEFLATE_ERR_INPUT_LENGTH (-1) -#define UDEFLATE_ERR_METHOD (-2) -#define UDEFLATE_ERR_FDICT (-3) -#define UDEFLATE_ERR_BLOCK (-4) -#define UDEFLATE_ERR_CHECKSUM (-5) -#define UDEFLATE_ERR_OUTPUT_LENGTH (-6) -#define UDEFLATE_ERR_FCHECK (-7) -#define UDEFLATE_ERR_NLEN (-8) - -int8_t udeflate(unsigned char *input_buf, uint16_t input_len, - unsigned char *output_buf, uint16_t output_len); -int8_t udeflate_zlib(unsigned char *input_buf, uint16_t input_len, - unsigned char *output_buf, uint16_t output_len); |