From 0b22d6ad0ebed2af239259dbfa36cd9920c6f4a2 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 23 Jun 2019 02:14:52 +0200 Subject: Move all handling of compressor names to libcompress.a This commit removes handling of compressor names from gensquashfs. Instead, functions are added to libcompress to obtain name from ID, ID from name and to print out defaults. Signed-off-by: David Oberhollenzer --- include/compress.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/compress.h b/include/compress.h index c9a4e08..7937646 100644 --- a/include/compress.h +++ b/include/compress.h @@ -49,6 +49,12 @@ compressor_t *compressor_create(E_SQFS_COMPRESSOR id, bool compress, void compressor_print_help(E_SQFS_COMPRESSOR id); +void compressor_print_available(void); + E_SQFS_COMPRESSOR compressor_get_default(void); +const char *compressor_name_from_id(E_SQFS_COMPRESSOR id); + +int compressor_id_from_name(const char *name, E_SQFS_COMPRESSOR *out); + #endif /* COMPRESS_H */ -- cgit v1.2.3