summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-19 16:02:33 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-20 03:18:47 +0200
commit04518e8940014d4528fbdc5474705cfcf98b44f2 (patch)
tree50341e52ea146230744d3e1d75574c9e035124c4 /include
parent03965d76aed3bad803b62bf9a683f0feaa1ae360 (diff)
Add data reader function to dump contents by inode
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/data_reader.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/data_reader.h b/include/data_reader.h
index 846ffd1..63bd539 100644
--- a/include/data_reader.h
+++ b/include/data_reader.h
@@ -28,6 +28,9 @@ data_reader_t *data_reader_create(sqfs_file_t *file, sqfs_super_t *super,
void data_reader_destroy(data_reader_t *data);
+int data_reader_dump(data_reader_t *data, const sqfs_inode_generic_t *inode,
+ int outfd, bool allow_sparse);
+
/*
Use a file_info_t to locate and extract all blocks of the coresponding
file and its fragment, if it has one. The entire data is dumped to the