aboutsummaryrefslogtreecommitdiff
path: root/mkfs/mksquashfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'mkfs/mksquashfs.h')
-rw-r--r--mkfs/mksquashfs.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/mkfs/mksquashfs.h b/mkfs/mksquashfs.h
index 677dad4..e216329 100644
--- a/mkfs/mksquashfs.h
+++ b/mkfs/mksquashfs.h
@@ -35,13 +35,30 @@ typedef struct {
compressor_t *cmp;
} meta_writer_t;
+typedef struct {
+ int outfd;
+ options_t opt;
+ sqfs_super_t super;
+ fstree_t fs;
+ void *block;
+ void *fragment;
+
+ sqfs_fragment_t *fragments;
+ size_t num_fragments;
+ size_t max_fragments;
+
+ int file_block_count;
+ file_info_t *frag_list;
+ size_t frag_offset;
+} sqfs_info_t;
+
void process_command_line(options_t *opt, int argc, char **argv);
-int sqfs_super_init(sqfs_super_t *s, const options_t *opt);
+int sqfs_super_init(sqfs_info_t *info);
-int sqfs_padd_file(sqfs_super_t *s, const options_t *opt, int outfd);
+int sqfs_padd_file(sqfs_info_t *info);
-int sqfs_super_write(const sqfs_super_t *super, int outfd);
+int sqfs_super_write(sqfs_info_t *info);
meta_writer_t *meta_writer_create(int fd, compressor_t *cmp);