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/compress.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/compress.h')
-rw-r--r-- | include/sqfs/compress.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/sqfs/compress.h b/include/sqfs/compress.h index 76f323e..f0e3b76 100644 --- a/include/sqfs/compress.h +++ b/include/sqfs/compress.h @@ -10,8 +10,6 @@ #include "sqfs/predef.h" #include "sqfs/super.h" -typedef struct sqfs_compressor_t sqfs_compressor_t; - /* Encapsultes a compressor with a simple interface to compress or uncompress/extract blocks of data. */ struct sqfs_compressor_t { @@ -45,7 +43,7 @@ struct sqfs_compressor_t { sqfs_compressor_t *(*create_copy)(sqfs_compressor_t *cmp); }; -typedef struct { +struct sqfs_compressor_config_t { uint16_t id; uint16_t flags; uint32_t block_size; @@ -69,7 +67,7 @@ typedef struct { uint32_t dict_size; } xz; } opt; -} sqfs_compressor_config_t; +}; typedef enum { SQFS_COMP_FLAG_LZ4_HC = 0x0001, |