summaryrefslogtreecommitdiff
path: root/include/sqfs/dir.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/dir.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/dir.h')
-rw-r--r--include/sqfs/dir.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/include/sqfs/dir.h b/include/sqfs/dir.h
index d993208..0b14cdf 100644
--- a/include/sqfs/dir.h
+++ b/include/sqfs/dir.h
@@ -8,33 +8,29 @@
#define SQFS_DIR_H
#include "sqfs/predef.h"
-#include "sqfs/meta_reader.h"
-#include "sqfs/meta_writer.h"
#define SQFS_MAX_DIR_ENT 256
-typedef struct {
+struct sqfs_dir_header_t {
uint32_t count;
uint32_t start_block;
uint32_t inode_number;
-} sqfs_dir_header_t;
+};
-typedef struct {
+struct sqfs_dir_entry_t {
uint16_t offset;
int16_t inode_diff;
uint16_t type;
uint16_t size;
uint8_t name[];
-} sqfs_dir_entry_t;
+};
-typedef struct {
+struct sqfs_dir_index_t {
uint32_t index;
uint32_t start_block;
uint32_t size;
uint8_t name[];
-} sqfs_dir_index_t;
-
-typedef struct sqfs_dir_writer_t sqfs_dir_writer_t;
+};
#ifdef __cplusplus
extern "C" {