summaryrefslogtreecommitdiffstats
path: root/src/ustar.h
diff options
context:
space:
mode:
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 802412a..1337f1a 100644
--- a/src/ustar.h
+++ b/src/ustar.h
@@ -21,6 +21,7 @@
#define OPKG_OPK_USTAR_H_
#include <stdint.h>
+#include "dirent.h"
#include "gzip.h"
#define OPKG_OPK_USTAR_RECORD_SIZE 512
@@ -85,6 +86,12 @@ opkg_opk_ustar_list(struct opkg_opk_ustar *ustar,
int
opkg_opk_ustar_read(struct opkg_opk_ustar *ustar, char **buffer, size_t *size);
+int
+opkg_opk_ustar_write_header(struct opkg_opk_ustar *ustar,
+ struct opkg_opk_dirent *dirent, uint16_t mode,
+ uid_t uid, const char *uname, gid_t gid, const char *gname,
+ uint64_t size, char type, const char *linkname);
+
/*
* Frees an archive structure.
* Parameters: