diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-04-17 23:20:35 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-04-17 23:31:32 +0200 |
commit | 1fe3f86230a970b3974f16a6bc2e819fdaf55b58 (patch) | |
tree | 7f9f097840a68e0e6605059c9ebb2f8ee2d3fbfd /lib/tar/internal.h | |
parent | 15250710c63a2c3d230304e46a03532f787759fb (diff) |
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/tar/internal.h')
-rw-r--r-- | lib/tar/internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ |