summaryrefslogtreecommitdiff
path: root/lib/sqfs/frag_reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqfs/frag_reader.c')
-rw-r--r--lib/sqfs/frag_reader.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/sqfs/frag_reader.c b/lib/sqfs/frag_reader.c
index 74fd292..02d813e 100644
--- a/lib/sqfs/frag_reader.c
+++ b/lib/sqfs/frag_reader.c
@@ -8,6 +8,18 @@
#include <stdlib.h>
#include <stdio.h>
+struct frag_reader_t {
+ sqfs_fragment_t *tbl;
+ size_t num_fragments;
+
+ int fd;
+ compressor_t *cmp;
+ size_t block_size;
+ size_t used;
+ size_t current_index;
+ uint8_t buffer[];
+};
+
static int precache_block(frag_reader_t *f, size_t i)
{
bool compressed;