From 1be51b107dd08a9575cb07a0a71d459927a85494 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 7 Feb 2023 18:20:20 +0100 Subject: libtar: Add an istream_t implementation The tar_istream_t reads the data from a tar file, having been given the header, and synthesizes zero bytes for sparse regions. Signed-off-by: David Oberhollenzer --- include/tar/tar.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/tar/tar.h b/include/tar/tar.h index 128464e..e1bc72a 100644 --- a/include/tar/tar.h +++ b/include/tar/tar.h @@ -75,6 +75,9 @@ int read_header(istream_t *fp, tar_header_decoded_t *out); void clear_header(tar_header_decoded_t *hdr); +istream_t *tar_record_istream_create(istream_t *parent, + const tar_header_decoded_t *hdr); + /* Write zero bytes to an output file to padd it to the tar record size. Returns 0 on success. On failure, prints error message to stderr. -- cgit v1.2.3