X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Fcompressor_ops.h;h=e172e567a7604acd801b99392a48a1f24de3eee4;hb=fe548d263d477a745dfa5057f540cc5c35ecce89;hp=4c36bb3600597f991e9a69434a516c9ddff60498;hpb=883833a4b3dabec325edf1ca938000f91d587c00;p=wimlib diff --git a/include/wimlib/compressor_ops.h b/include/wimlib/compressor_ops.h index 4c36bb36..e172e567 100644 --- a/include/wimlib/compressor_ops.h +++ b/include/wimlib/compressor_ops.h @@ -7,12 +7,17 @@ #ifndef _WIMLIB_COMPRESSOR_OPS_H #define _WIMLIB_COMPRESSOR_OPS_H -#include +#include struct compressor_ops { + bool (*params_valid)(const struct wimlib_compressor_params_header *params); + + u64 (*get_needed_memory)(size_t max_block_size, + const struct wimlib_compressor_params_header *params); + int (*create_compressor)(size_t max_block_size, - const struct wimlib_compressor_params_header *extra_params, + const struct wimlib_compressor_params_header *params, void **private_ret); size_t (*compress)(const void *uncompressed_data,