From 6a5d2dc7795029acf38862ecaefebc4015400045 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 18 Sep 2023 23:25:32 +0200 Subject: libtar: accept an sqfs_dir_entry_t instead of a struct stat Signed-off-by: David Oberhollenzer --- include/tar/tar.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'include/tar/tar.h') diff --git a/include/tar/tar.h b/include/tar/tar.h index 68fde98..84cffb5 100644 --- a/include/tar/tar.h +++ b/include/tar/tar.h @@ -55,14 +55,10 @@ extern "C" { The counter is an incremental record counter used if additional headers need to be generated. */ -int write_tar_header(sqfs_ostream_t *fp, - const struct stat *sb, const char *name, - const char *slink_target, const sqfs_xattr_t *xattr, +int write_tar_header(sqfs_ostream_t *fp, const sqfs_dir_entry_t *ent, + const char *link_target, const sqfs_xattr_t *xattr, unsigned int counter); -int write_hard_link(sqfs_ostream_t *fp, const struct stat *sb, const char *name, - const char *target, unsigned int counter); - /* round up to block size and skip the entire entry */ int read_header(sqfs_istream_t *fp, tar_header_decoded_t *out); -- cgit v1.2.3