From b699f4cd57a58091f353f529f4645533821f56d9 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 30 Apr 2023 01:54:33 -0400 Subject: ustar: Add functions to write data And rename record buffer. --- (limited to 'src/ustar.h') 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: -- cgit v0.9.1