aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-02-07 18:20:20 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-02-08 08:29:20 +0100
commit1be51b107dd08a9575cb07a0a71d459927a85494 (patch)
treead4cbc204742f1b2fe3c36a47486b1c20b2a197e /include
parentf0975f9e517edf54811f455f0ce549612d252534 (diff)
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/tar/tar.h3
1 files changed, 3 insertions, 0 deletions
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.