diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-07 01:08:14 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-07 01:08:14 +0200 |
commit | 3d9ba1a234d0966de21d8d592bea7b4ffc325586 (patch) | |
tree | e53449ca435ec00f0da938d8530f740cffcc1272 /include/sqfs/super.h | |
parent | 373ba219aa385678a14f9c17b48ad807858804ce (diff) |
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/sqfs/super.h')
-rw-r--r-- | include/sqfs/super.h | 4 |
1 files changed, 2 insertions, 2 deletions
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, |