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 | |
parent | 0f0a58f94f65d3c84e1ab46d91e21f776507e080 (diff) |
rename udeflate to deflate
Diffstat (limited to 'include/lib')
-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); |