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 /include/highlevel.h | |
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 'include/highlevel.h')
-rw-r--r-- | include/highlevel.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/include/highlevel.h b/include/highlevel.h index 701754a..ffcc44c 100644 --- a/include/highlevel.h +++ b/include/highlevel.h @@ -24,7 +24,7 @@ #include <stddef.h> typedef struct { - compressor_t *cmp; + sqfs_compressor_t *cmp; data_reader_t *data; sqfs_super_t super; fstree_t fs; @@ -53,7 +53,7 @@ enum RDTREE_FLAGS { Returns 0 on success. Prints error messages to stderr on failure. */ int sqfs_serialize_fstree(int outfd, sqfs_super_t *super, fstree_t *fs, - compressor_t *cmp, sqfs_id_table_t *idtbl); + sqfs_compressor_t *cmp, sqfs_id_table_t *idtbl); /* Convert a generic squashfs tree node to an fstree_t node. @@ -71,8 +71,8 @@ tree_node_t *tree_node_from_inode(sqfs_inode_generic_t *inode, Returns 0 on success. Prints error messages to stderr on failure. */ -int deserialize_fstree(fstree_t *out, sqfs_super_t *super, compressor_t *cmp, - int fd, int flags); +int deserialize_fstree(fstree_t *out, sqfs_super_t *super, + sqfs_compressor_t *cmp, int fd, int flags); /* Generate a squahfs xattr table from a file system tree. @@ -80,7 +80,7 @@ int deserialize_fstree(fstree_t *out, sqfs_super_t *super, compressor_t *cmp, Returns 0 on success. Prints error messages to stderr on failure. */ int write_xattr(int outfd, fstree_t *fs, sqfs_super_t *super, - compressor_t *cmp); + sqfs_compressor_t *cmp); /* Generate an NFS export table. @@ -88,7 +88,7 @@ int write_xattr(int outfd, fstree_t *fs, sqfs_super_t *super, Returns 0 on success. Prints error messages to stderr on failure. */ int write_export_table(int outfd, fstree_t *fs, sqfs_super_t *super, - compressor_t *cmp); + sqfs_compressor_t *cmp); /* Print out fancy statistics for squashfs packing tools */ void sqfs_print_statistics(fstree_t *fs, sqfs_super_t *super); @@ -107,7 +107,8 @@ void compressor_print_available(void); E_SQFS_COMPRESSOR compressor_get_default(void); -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); void compressor_print_help(E_SQFS_COMPRESSOR id); |