summaryrefslogtreecommitdiffstats
path: root/src/ustar.h
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-04-30 01:54:33 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-04-30 01:54:33 (EDT)
commitb699f4cd57a58091f353f529f4645533821f56d9 (patch)
tree52223fbe654ffe51d51545f7a2793f5a5b5295ae /src/ustar.h
parent4a9d3a83d5f62afaa841fd79a5b90089e4975475 (diff)
ustar: Add functions to write data
And rename record buffer.
Diffstat (limited to 'src/ustar.h')
-rw-r--r--src/ustar.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ustar.h b/src/ustar.h
index 1337f1a..4f6b79b 100644
--- a/src/ustar.h
+++ b/src/ustar.h
@@ -92,6 +92,13 @@ opkg_opk_ustar_write_header(struct opkg_opk_ustar *ustar,
uid_t uid, const char *uname, gid_t gid, const char *gname,
uint64_t size, char type, const char *linkname);
+int
+opkg_opk_ustar_get_buffer(struct opkg_opk_ustar *ustar, char **buffer,
+ size_t *size);
+
+int
+opkg_opk_ustar_write_data(struct opkg_opk_ustar *ustar, size_t size);
+
/*
* Frees an archive structure.
* Parameters: