aboutsummaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/tar.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/inc/tar.h b/inc/tar.h
index dbeca6d..66e3c64 100644
--- a/inc/tar.h
+++ b/inc/tar.h
@@ -65,10 +65,9 @@ typedef enum
FLAG_LIST = 1 << 0,
} t_flags;
-// utils.c
-int record_write(int fd, char *s, size_t size);
-int record_write_blank(int fd, size_t count);
+// header.c
int header_write(int fd, char *file_name, struct stat *statbuf);
+int header_parse(char record[RECORD_SIZE], struct stat *statbuf, t_header *header);
// fs.c
int file_content_write(int fd, int file_fd, struct stat *statbuf);
@@ -79,4 +78,10 @@ int directory_write(int fd, char dir_name[PATH_MAX]);
int archive_write(char *archive_file_name, char **files);
int archive_read(char *archive_file_name);
+// record.c
+int record_write(int fd, char *s, size_t size);
+int record_write_blank(int fd, size_t count);
+int record_read(int fd, char record[RECORD_SIZE]);
+bool record_is_blank(char record[RECORD_SIZE]);
+
#endif // TAR_H