summaryrefslogtreecommitdiffstats
path: root/lib/tar.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tar.h')
-rw-r--r--lib/tar.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/tar.h b/lib/tar.h
new file mode 100644
index 0000000..d2435ac
--- /dev/null
+++ b/lib/tar.h
@@ -0,0 +1,25 @@
+#ifndef _JOVE_HAL_TAR_H
+#define _JOVE_HAL_TAR_H 1
+
+struct tar_header
+{
+ char filename[100];
+ char mode[8];
+ char uid[8];
+ char gid[8];
+ char size[12];
+ char modtime[12];
+ char checksum[8];
+ char type;
+};
+
+union tar_block
+{
+ struct tar_header header;
+ char data[512];
+};
+
+const char *tar_filename(struct tar_header *header);
+int tar_filesize(struct tar_header *header);
+
+#endif