aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-23 02:14:52 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-23 02:37:08 +0200
commit0b22d6ad0ebed2af239259dbfa36cd9920c6f4a2 (patch)
tree0680c237006ed11fc200e9d3d4717d25455e9599 /include
parent5f7a1a092495c84c4c4cd208c3c983c3f16c8951 (diff)
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/compress.h6
1 files changed, 6 insertions, 0 deletions
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 */