diff options
Diffstat (limited to 'include/sqfs')
-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" { |