summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-20 22:17:20 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-20 22:17:20 +0200
commit1a6b70f3702d3bdb0f1cb8e4669ec5ed21ea923b (patch)
treee35835e7497b12e96dbddd072b2fdd189f448990 /include
parente43be03653011f507901986cd9ff559cf20eb9cc (diff)
Split data reader constructor and fragment table loading
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/data_reader.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/include/data_reader.h b/include/data_reader.h
index 324cdc8..a8ccabf 100644
--- a/include/data_reader.h
+++ b/include/data_reader.h
@@ -15,17 +15,13 @@
typedef struct data_reader_t data_reader_t;
-/*
- Create a data reader for accessing data blocks in a squashfs image.
-
- Internally creates a fragment_reader_t (if applicable) to resolve
- fragment indices.
- Prints error messsages to stderr on failure.
- */
-data_reader_t *data_reader_create(sqfs_file_t *file, sqfs_super_t *super,
+data_reader_t *data_reader_create(sqfs_file_t *file, size_t block_size,
sqfs_compressor_t *cmp);
+int data_reader_load_fragment_table(data_reader_t *data,
+ const sqfs_super_t *super);
+
void data_reader_destroy(data_reader_t *data);
int data_reader_get_fragment(data_reader_t *data,