From 1fe3f86230a970b3974f16a6bc2e819fdaf55b58 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 17 Apr 2020 23:20:35 +0200 Subject: Cleanup: split read_header.c in libtar.a Simply moving the pax header decoding to a separate file and splitting out the common helper functions should be a good start. Signed-off-by: David Oberhollenzer --- lib/tar/internal.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/tar/internal.h') diff --git a/lib/tar/internal.h b/lib/tar/internal.h index 0220f05..755d4eb 100644 --- a/lib/tar/internal.h +++ b/lib/tar/internal.h @@ -65,4 +65,9 @@ size_t base64_decode(sqfs_u8 *out, const char *in, size_t len); void urldecode(char *str); +char *record_to_memory(FILE *fp, sqfs_u64 size); + +int read_pax_header(FILE *fp, sqfs_u64 entsize, unsigned int *set_by_pax, + tar_header_decoded_t *out); + #endif /* INTERNAL_H */ -- cgit v1.2.3