aboutsummaryrefslogtreecommitdiff
path: root/bin/gensquashfs/src/mkfs.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-05 19:20:04 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-05 16:28:56 +0200
commit9221d4dce6ff3e3cdd0f630a884b3643e6a1cac4 (patch)
treec0f2deb25d2104bbaa735bb00ed7a226604fe5ec /bin/gensquashfs/src/mkfs.h
parent2d3cb9c4323a803268206db3a9363abc67d908d0 (diff)
gensquashfs: replace XattrMapEntry with sqfs_xattr_t
It has the same members, but with the added benefit that we already have helper functions for it in libsquashfs and we can just hose it directly into the xattr writer. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/gensquashfs/src/mkfs.h')
-rw-r--r--bin/gensquashfs/src/mkfs.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/bin/gensquashfs/src/mkfs.h b/bin/gensquashfs/src/mkfs.h
index 9f2be13..0a9a3b3 100644
--- a/bin/gensquashfs/src/mkfs.h
+++ b/bin/gensquashfs/src/mkfs.h
@@ -62,16 +62,9 @@ typedef struct {
bool scan_xattr;
} options_t;
-struct XattrMapEntry {
- char *key;
- sqfs_u8 *value;
- size_t value_len;
- struct XattrMapEntry *next;
-};
-
struct XattrMapPattern {
char *path;
- struct XattrMapEntry *entries;
+ sqfs_xattr_t *entries;
struct XattrMapPattern *next;
};