diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-05-03 15:59:35 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-05-03 21:45:46 +0200 |
commit | 4dc4c6bf50155550c0b83e433fef8c7c19462853 (patch) | |
tree | c46dabc7c757fac27b506194ce4d236c244ac938 /unpack/unsquashfs.h | |
parent | 12c8196ad46808dc9d0e84b3a798509dcf1a41e7 (diff) |
unsquashfs: add file data extraction
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'unpack/unsquashfs.h')
-rw-r--r-- | unpack/unsquashfs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unpack/unsquashfs.h b/unpack/unsquashfs.h index 52b3889..0e8854b 100644 --- a/unpack/unsquashfs.h +++ b/unpack/unsquashfs.h @@ -3,6 +3,7 @@ #define UNSQUASHFS_H #include "meta_reader.h" +#include "frag_reader.h" #include "squashfs.h" #include "compress.h" #include "id_table.h" @@ -27,4 +28,7 @@ int read_fstree(fstree_t *out, int fd, sqfs_super_t *super, compressor_t *cmp); void list_files(tree_node_t *node); +int extract_file(file_info_t *fi, compressor_t *cmp, size_t block_size, + frag_reader_t *frag, int sqfsfd, int outfd); + #endif /* UNSQUASHFS_H */ |