From 3d9ba1a234d0966de21d8d592bea7b4ffc325586 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 7 Sep 2019 01:08:14 +0200 Subject: Move data structure forward declarations to predef header This in turn allows for removing most of the header inclusions within the public headers. Signed-off-by: David Oberhollenzer --- include/sqfs/super.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/sqfs/super.h') diff --git a/include/sqfs/super.h b/include/sqfs/super.h index 91b1693..b1ce82b 100644 --- a/include/sqfs/super.h +++ b/include/sqfs/super.h @@ -15,7 +15,7 @@ #define SQFS_DEVBLK_SIZE 4096 #define SQFS_DEFAULT_BLOCK_SIZE 131072 -typedef struct { +struct sqfs_super_t { uint32_t magic; uint32_t inode_count; uint32_t modification_time; @@ -35,7 +35,7 @@ typedef struct { uint64_t directory_table_start; uint64_t fragment_table_start; uint64_t export_table_start; -} __attribute__((packed)) sqfs_super_t; +}; typedef enum { SQFS_COMP_GZIP = 1, -- cgit v1.2.3