From 320ae4f8e752f6652c7b5c8201d7267cd4de17c1 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 5 Sep 2019 18:46:50 +0200 Subject: Cleanup naming scheme of compressor Add sqfs_* prefix to compressor, move implementation prefix up front. Signed-off-by: David Oberhollenzer --- lib/sqfshelper/sqfs_reader.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/sqfshelper/sqfs_reader.c') diff --git a/lib/sqfshelper/sqfs_reader.c b/lib/sqfshelper/sqfs_reader.c index 49e91f5..598b3c4 100644 --- a/lib/sqfshelper/sqfs_reader.c +++ b/lib/sqfshelper/sqfs_reader.c @@ -14,7 +14,7 @@ int sqfs_reader_open(sqfs_reader_t *rd, const char *filename, int rdtree_flags) { - compressor_config_t cfg; + sqfs_compressor_config_t cfg; memset(rd, 0, sizeof(*rd)); @@ -27,16 +27,16 @@ int sqfs_reader_open(sqfs_reader_t *rd, const char *filename, int rdtree_flags) if (sqfs_super_read(&rd->super, rd->sqfsfd)) goto fail_fd; - if (!compressor_exists(rd->super.compression_id)) { + if (!sqfs_compressor_exists(rd->super.compression_id)) { fprintf(stderr, "%s: unknown compressor used.\n", filename); goto fail_fd; } - compressor_config_init(&cfg, rd->super.compression_id, - rd->super.block_size, - SQFS_COMP_FLAG_UNCOMPRESS); + sqfs_compressor_config_init(&cfg, rd->super.compression_id, + rd->super.block_size, + SQFS_COMP_FLAG_UNCOMPRESS); - rd->cmp = compressor_create(&cfg); + rd->cmp = sqfs_compressor_create(&cfg); if (rd->cmp == NULL) goto fail_fd; -- cgit v1.2.3