diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-09 14:23:59 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-09 14:23:59 +0200 |
commit | 51ffaaee97e6eeaa2117d4349fbbc97bf5721224 (patch) | |
tree | 498102b18f1cbc083cf53e0fc2ec539d347d8193 | |
parent | a35bf2eb54cceb5cb8e3f8302cf19e15ca60a170 (diff) |
Add xattr data structure declarations to predef header
Apparantly they were overlooked the last time.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r-- | include/sqfs/predef.h | 4 | ||||
-rw-r--r-- | include/sqfs/xattr.h | 16 |
2 files changed, 12 insertions, 8 deletions
diff --git a/include/sqfs/predef.h b/include/sqfs/predef.h index c8d0c19..e98ae34 100644 --- a/include/sqfs/predef.h +++ b/include/sqfs/predef.h @@ -79,5 +79,9 @@ typedef struct sqfs_inode_dir_t sqfs_inode_dir_t; typedef struct sqfs_inode_dir_ext_t sqfs_inode_dir_ext_t; typedef struct sqfs_inode_generic_t sqfs_inode_generic_t; typedef struct sqfs_super_t sqfs_super_t; +typedef struct sqfs_xattr_entry_t sqfs_xattr_entry_t; +typedef struct sqfs_xattr_value_t sqfs_xattr_value_t; +typedef struct sqfs_xattr_id_t sqfs_xattr_id_t; +typedef struct sqfs_xattr_id_table_t sqfs_xattr_id_table_t; #endif /* SQFS_PREDEF_H */ diff --git a/include/sqfs/xattr.h b/include/sqfs/xattr.h index d1f242b..2a25cb5 100644 --- a/include/sqfs/xattr.h +++ b/include/sqfs/xattr.h @@ -31,28 +31,28 @@ typedef enum { SQFS_XATTR_PREFIX_MASK = 0xFF, } E_SQFS_XATTR_TYPE; -typedef struct { +struct sqfs_xattr_entry_t { uint16_t type; uint16_t size; uint8_t key[]; -} sqfs_xattr_entry_t; +}; -typedef struct { +struct sqfs_xattr_value_t { uint32_t size; uint8_t value[]; -} sqfs_xattr_value_t; +}; -typedef struct { +struct sqfs_xattr_id_t { uint64_t xattr; uint32_t count; uint32_t size; -} sqfs_xattr_id_t; +}; -typedef struct { +struct sqfs_xattr_id_table_t { uint64_t xattr_table_start; uint32_t xattr_ids; uint32_t unused; -} sqfs_xattr_id_table_t; +}; #ifdef __cplusplus extern "C" { |