aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-05-20 11:58:00 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-05-20 12:02:55 +0200
commitfce20510810cd8f5e078cecd113bbcacd2d71516 (patch)
tree5ef9fbd900d0a80ece55a3318cf998d1c35a1f36 /lib
parent13cc42ce135155f0437298540b0bc5a821d7a644 (diff)
cleanup: internalize frag_reader_t implementation
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-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;