diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-05-20 11:01:10 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-05-20 11:01:10 +0200 |
commit | c2e01ed987e942005fa66f11d96b8edb1d930c99 (patch) | |
tree | 856042ae5b3b1928a8ca7275c996f68972a5f680 /include/meta_reader.h | |
parent | 93f5a822b208b7df1c9a3f15685f397e0ce344aa (diff) |
cleanup: internalize meta reader/writer implementations
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/meta_reader.h')
-rw-r--r-- | include/meta_reader.h | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/include/meta_reader.h b/include/meta_reader.h index 78c0db3..a662959 100644 --- a/include/meta_reader.h +++ b/include/meta_reader.h @@ -5,47 +5,7 @@ #include "compress.h" #include "squashfs.h" -/** - * @struct meta_reader_t - * - * @brief Abstracts away I/O on SquashFS meta data - */ -typedef struct { - /** - * @brief The location of the current block in the file - */ - uint64_t block_offset; - - /** - * @brief The location of the next block after the current one - */ - uint64_t next_block; - - /** - * @brief A byte offset into the uncompressed data of the current block - */ - size_t offset; - - /** - * @brief The underlying file descriptor to read from - */ - int fd; - - /** - * @brief A pointer to the compressor to use for extracting data - */ - compressor_t *cmp; - - /** - * @brief The raw data read from the input file - */ - uint8_t data[SQFS_META_BLOCK_SIZE]; - - /** - * @brief The uncompressed data read from the input file - */ - uint8_t scratch[SQFS_META_BLOCK_SIZE]; -} meta_reader_t; +typedef struct meta_reader_t meta_reader_t; /** * @brief Create a meta data reader |