From 9a8071e7e6c7c8c9f73bd54d32d2ce6b62b1ba8b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 21 Jan 2021 19:39:33 +0100 Subject: rename udeflate to deflate --- include/lib/deflate.h | 21 +++++++++++++++++++++ include/lib/udeflate.h | 21 --------------------- 2 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 include/lib/deflate.h delete mode 100644 include/lib/udeflate.h (limited to 'include/lib') 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 + +#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 - -#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); -- cgit v1.2.3