summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-05-27 15:29:11 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-05-30 17:49:40 +0200
commit36e70b384e1360e47f473be54ef3c0599bf82844 (patch)
treea58bdb2cf0063904f8c602137e494c4d658bc574 /include
parente5f99ba93e08e237962bcf337848e60730aa2d54 (diff)
Cleanup: sqfs2tar: break up and simplify the repacking code
- Move the xattr extraction and repacking to xattr.c - Don't on-the-fly delete the tar xattr list, use the function from libtar.a - Split minor tasks into static helper functions - creating a libtar xattr struct from libsqfs xattr data - finding a hard link entry from current path and inode number Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/tar.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tar.h b/include/tar.h
index af3c9ab..f235d08 100644
--- a/include/tar.h
+++ b/include/tar.h
@@ -137,6 +137,8 @@ int skip_entry(FILE *fp, sqfs_u64 size);
int read_header(FILE *fp, tar_header_decoded_t *out);
+void free_xattr_list(tar_xattr_t *list);
+
void clear_header(tar_header_decoded_t *hdr);
/*