summaryrefslogtreecommitdiff
path: root/include/sqfs/block_processor.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-07 01:08:14 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-07 01:08:14 +0200
commit3d9ba1a234d0966de21d8d592bea7b4ffc325586 (patch)
treee53449ca435ec00f0da938d8530f740cffcc1272 /include/sqfs/block_processor.h
parent373ba219aa385678a14f9c17b48ad807858804ce (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/block_processor.h')
-rw-r--r--include/sqfs/block_processor.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/sqfs/block_processor.h b/include/sqfs/block_processor.h
index b757708..1ec2f7c 100644
--- a/include/sqfs/block_processor.h
+++ b/include/sqfs/block_processor.h
@@ -8,7 +8,6 @@
#define SFQS_BLOCK_PROCESSOR_H
#include "sqfs/predef.h"
-#include "sqfs/compress.h"
enum {
/* only calculate checksum, do NOT compress the data */
@@ -27,9 +26,9 @@ enum {
SQFS_BLK_USER = 0x0080
};
-typedef struct sqfs_block_t {
+struct sqfs_block_t {
/* used internally, ignored and overwritten when enqueueing blocks */
- struct sqfs_block_t *next;
+ sqfs_block_t *next;
uint32_t sequence_number;
/* Size of the data area */
@@ -49,9 +48,7 @@ typedef struct sqfs_block_t {
/* raw data to be processed */
uint8_t data[];
-} sqfs_block_t;
-
-typedef struct sqfs_block_processor_t sqfs_block_processor_t;
+};
/*
Gets called for each processed block. May be called from a different thread