diff options
author | Phillip Lougher <phillip@lougher.demon.co.uk> | 2009-10-05 23:04:15 -0400 |
---|---|---|
committer | Phillip Lougher <phillip@lougher.demon.co.uk> | 2010-01-20 16:47:47 -0500 |
commit | 4c0f0bb2351bee3de8dd7715ee199454a59f1230 (patch) | |
tree | c552993587a8e87f7ebc0fe0955efdde94cc8884 /fs/squashfs/squashfs.h | |
parent | f1a40359f8d8ba073257ed31a513e492621bcbc5 (diff) |
Squashfs: add a decompressor framework
This adds a decompressor framework which allows multiple compression
algorithms to be cleanly supported.
Also update zlib wrapper and other code to use the new framework.
Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
Diffstat (limited to 'fs/squashfs/squashfs.h')
-rw-r--r-- | fs/squashfs/squashfs.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/squashfs/squashfs.h b/fs/squashfs/squashfs.h index 9c2f76a1c50b..fe2587af5512 100644 --- a/fs/squashfs/squashfs.h +++ b/fs/squashfs/squashfs.h | |||
@@ -51,6 +51,9 @@ extern struct squashfs_cache_entry *squashfs_get_datablock(struct super_block *, | |||
51 | u64, int); | 51 | u64, int); |
52 | extern int squashfs_read_table(struct super_block *, void *, u64, int); | 52 | extern int squashfs_read_table(struct super_block *, void *, u64, int); |
53 | 53 | ||
54 | /* decompressor.c */ | ||
55 | extern const struct squashfs_decompressor *squashfs_lookup_decompressor(int); | ||
56 | |||
54 | /* export.c */ | 57 | /* export.c */ |
55 | extern __le64 *squashfs_read_inode_lookup_table(struct super_block *, u64, | 58 | extern __le64 *squashfs_read_inode_lookup_table(struct super_block *, u64, |
56 | unsigned int); | 59 | unsigned int); |
@@ -70,14 +73,8 @@ extern struct inode *squashfs_iget(struct super_block *, long long, | |||
70 | unsigned int); | 73 | unsigned int); |
71 | extern int squashfs_read_inode(struct inode *, long long); | 74 | extern int squashfs_read_inode(struct inode *, long long); |
72 | 75 | ||
73 | /* zlib_wrapper.c */ | ||
74 | extern void *squashfs_zlib_init(void); | ||
75 | extern void squashfs_zlib_free(void *); | ||
76 | extern int squashfs_zlib_uncompress(struct squashfs_sb_info *, void **, | ||
77 | struct buffer_head **, int, int, int, int, int); | ||
78 | |||
79 | /* | 76 | /* |
80 | * Inodes and files operations | 77 | * Inodes, files and decompressor operations |
81 | */ | 78 | */ |
82 | 79 | ||
83 | /* dir.c */ | 80 | /* dir.c */ |
@@ -94,3 +91,6 @@ extern const struct inode_operations squashfs_dir_inode_ops; | |||
94 | 91 | ||
95 | /* symlink.c */ | 92 | /* symlink.c */ |
96 | extern const struct address_space_operations squashfs_symlink_aops; | 93 | extern const struct address_space_operations squashfs_symlink_aops; |
94 | |||
95 | /* zlib_wrapper.c */ | ||
96 | extern const struct squashfs_decompressor squashfs_zlib_comp_ops; | ||