From 129e1758a5e2cf851f042e139fdd808a9be9ce94 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 15 Sep 2019 18:07:47 +0200 Subject: Move sparse_map_t to libsquashfs headers, rename it to sqfs_sparse_map_t Signed-off-by: David Oberhollenzer --- include/sqfs/io.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/sqfs/io.h') diff --git a/include/sqfs/io.h b/include/sqfs/io.h index 9784113..cf6f1fa 100644 --- a/include/sqfs/io.h +++ b/include/sqfs/io.h @@ -120,6 +120,20 @@ struct sqfs_file_t { int (*truncate)(sqfs_file_t *file, uint64_t size); }; +/** + * @struct sqfs_sparse_map_t + * + * @brief Describes the layout of a sparse file. + * + * This structure is part of a linked list that indicates where the actual + * data is located in a sparse file. + */ +struct sqfs_sparse_map_t { + sqfs_sparse_map_t *next; + uint64_t offset; + uint64_t count; +}; + #ifdef __cplusplus extern "C" { #endif -- cgit v1.2.3