diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-05 18:46:50 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-05 18:46:50 +0200 |
commit | 320ae4f8e752f6652c7b5c8201d7267cd4de17c1 (patch) | |
tree | 4423514c5433dc3b70e32fd5950a139827b94ac9 /lib/sqfshelper/comp_opt.c | |
parent | f92cf3b98f51d355c92900f1d316b141b2b9d4fd (diff) |
Cleanup naming scheme of compressor
Add sqfs_* prefix to compressor, move implementation prefix up front.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfshelper/comp_opt.c')
-rw-r--r-- | lib/sqfshelper/comp_opt.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/sqfshelper/comp_opt.c b/lib/sqfshelper/comp_opt.c index 1f3fabf..c942d23 100644 --- a/lib/sqfshelper/comp_opt.c +++ b/lib/sqfshelper/comp_opt.c @@ -47,7 +47,7 @@ static const char *lzo_algs[] = { [SQFS_LZO1X_999] = "lzo1x_999", }; -static int set_flag(compressor_config_t *cfg, const char *name, +static int set_flag(sqfs_compressor_config_t *cfg, const char *name, const flag_t *flags, size_t num_flags) { size_t i; @@ -62,7 +62,7 @@ static int set_flag(compressor_config_t *cfg, const char *name, return -1; } -static int find_lzo_alg(compressor_config_t *cfg, const char *name) +static int find_lzo_alg(sqfs_compressor_config_t *cfg, const char *name) { size_t i; @@ -123,7 +123,8 @@ static char *const token[] = { NULL }; -int compressor_cfg_init_options(compressor_config_t *cfg, E_SQFS_COMPRESSOR id, +int compressor_cfg_init_options(sqfs_compressor_config_t *cfg, + E_SQFS_COMPRESSOR id, size_t block_size, char *options) { size_t num_flags = 0, min_level = 0, max_level = 0, level; @@ -131,7 +132,7 @@ int compressor_cfg_init_options(compressor_config_t *cfg, E_SQFS_COMPRESSOR id, char *subopts, *value; int i, opt; - if (compressor_config_init(cfg, id, block_size, 0)) + if (sqfs_compressor_config_init(cfg, id, block_size, 0)) return -1; if (options == NULL) |