summaryrefslogtreecommitdiff
path: root/src/write.h
diff options
context:
space:
mode:
authorjakob <jakob@memeware.net>2017-01-12 17:09:17 -0500
committerjakob <jakob@memeware.net>2017-01-12 17:09:17 -0500
commit43e539561a4ea95274468b78735555d6e89fdfd9 (patch)
tree4a005aed01dc34c40b4fe5657d2b155ea4231e85 /src/write.h
parent350b126eef468c7c8d66c72100d8a3c76e9afec1 (diff)
Finished implementation of file decryption. There are still many memory corruption bugs and a segfault is not uncommon.
Diffstat (limited to 'src/write.h')
-rw-r--r--src/write.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/write.h b/src/write.h
index d37adda..7bd1fdc 100644
--- a/src/write.h
+++ b/src/write.h
@@ -25,4 +25,16 @@ typedef struct elif_node {
/* Iterates through the linked list of file entries and writes every
entry to disk, according to information specified by the node. */
-void write_files(file_node *file_root, elif_node *elif_root, Bytef *start);
+void write_files(file_node *file_root, elif_node *elif_root, FILE *archive);
+
+/* Inserts an eliF entry at the end of a linked list. */
+void defer_elif_node(elif_node *new, elif_node *root);
+
+/* Inserts a File entry node at the end of a linked list. */
+void defer_file_node(file_node *new, file_node *root);
+
+/* Iterates through the linked list and frees all entries. */
+void free_elif_nodes(elif_node *base);
+
+/* Iterates through the linked list and frees all entries. */
+void free_file_nodes(file_node *base);