commit a6d69e947371ca75994abf3a78bda79458b9be03
parent 6fb2707be146908e8d80fe74ed1c55a5ca353171
Author: MikoĊaj Lenczewski <mblenczewski@gmail.com>
Date: Mon, 13 Feb 2023 00:40:34 +0000
Simplify `struct riot_wad_chunk`, add `struct riot_wad` to wad context
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libriot/include/libriot/wad.h b/libriot/include/libriot/wad.h
@@ -25,17 +25,18 @@ struct riot_wad_chunk {
b8 duplicated;
u16 sub_chunk_count, sub_chunk_start;
u64 checksum;
- struct riot_intrusive_list_node list;
};
struct riot_wad {
u8 major, minor;
- riot_offptr_t root_chunk;
+ u32 chunk_count;
+ u32 data_start;
};
#define RIOT_WAD_CTX_CHUNK_POOL_SZ 4 * KiB
struct riot_wad_ctx {
+ struct riot_wad wad;
struct mem_pool chunk_pool;
};