compress: move compression mode enum to function.h

This commit is contained in:
2025-07-30 18:30:31 +01:00
parent e4c4de94b8
commit 051d371eb5
7 changed files with 25 additions and 23 deletions

View File

@@ -8,7 +8,7 @@
#include <string.h>
enum b_status b_compressor_create(
const struct b_compression_function *func, enum b_compressor_mode mode,
const struct b_compression_function *func, enum b_compression_mode mode,
struct b_ringbuffer *inbuf, struct b_ringbuffer *outbuf,
struct b_compressor **out)
{
@@ -59,7 +59,7 @@ enum b_status b_compressor_destroy(struct b_compressor *compressor)
enum b_status b_compressor_compress(struct b_compressor *compressor)
{
if (compressor->c_mode != B_COMPRESSOR_MODE_COMPRESS) {
if (compressor->c_mode != B_COMPRESSION_MODE_COMPRESS) {
return B_ERR_BAD_STATE;
}
@@ -96,7 +96,7 @@ enum b_status b_compressor_compress_end(struct b_compressor *compressor)
enum b_status b_compressor_decompress(struct b_compressor *compressor)
{
if (compressor->c_mode != B_COMPRESSOR_MODE_DECOMPRESS) {
if (compressor->c_mode != B_COMPRESSION_MODE_DECOMPRESS) {
return B_ERR_BAD_STATE;
}