aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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,