diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-05-21 12:16:37 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-05-21 18:21:17 +0200 |
commit | c9d3c2e1628e5b28a553ae098b3b9f3019c45a63 (patch) | |
tree | a02caaa953b757bbc74793994db37f62e23690e3 /lib/comp/internal.h | |
parent | 58ced38ac46976c1b0dfa91c513c8ccd170b4e26 (diff) |
Add command line flag for compressor options, pass them to compressors
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/comp/internal.h')
-rw-r--r-- | lib/comp/internal.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/lib/comp/internal.h b/lib/comp/internal.h index 8f880f4..0185f4d 100644 --- a/lib/comp/internal.h +++ b/lib/comp/internal.h @@ -8,14 +8,29 @@ int generic_write_options(int fd, const void *data, size_t size); int generic_read_options(int fd, void *data, size_t size); -compressor_t *create_xz_compressor(bool compress, size_t block_size); +compressor_t *create_xz_compressor(bool compress, size_t block_size, + char *options); -compressor_t *create_gzip_compressor(bool compress, size_t block_size); +compressor_t *create_gzip_compressor(bool compress, size_t block_size, + char *options); -compressor_t *create_lzo_compressor(bool compress, size_t block_size); +compressor_t *create_lzo_compressor(bool compress, size_t block_size, + char *options); -compressor_t *create_lz4_compressor(bool compress, size_t block_size); +compressor_t *create_lz4_compressor(bool compress, size_t block_size, + char *options); -compressor_t *create_zstd_compressor(bool compress, size_t block_size); +compressor_t *create_zstd_compressor(bool compress, size_t block_size, + char *options); + +void compressor_xz_print_help(void); + +void compressor_gzip_print_help(void); + +void compressor_lzo_print_help(void); + +void compressor_lz4_print_help(void); + +void compressor_zstd_print_help(void); #endif /* INTERNAL_H */ |