summaryrefslogtreecommitdiff
path: root/src/table.h
diff options
context:
space:
mode:
authorjakob <jakob@memeware.net>2017-05-10 20:42:36 -0400
committerjakob <jakob@memeware.net>2017-05-10 20:42:36 -0400
commit1885dd37171b1cf95210e7a4850c2179f21a9e08 (patch)
treea7be17e425fea7ec3ac7b1bb8044eb94d873dc4d /src/table.h
parentb38a284ffc56e292b79610bbd94ebaf086fb4421 (diff)
eliF entry creation for the archive table
Diffstat (limited to 'src/table.h')
-rw-r--r--src/table.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/table.h b/src/table.h
index 80ad099..89189c6 100644
--- a/src/table.h
+++ b/src/table.h
@@ -60,6 +60,10 @@ void read_elif(struct stream *s, struct table_entry *root);
to the linked list. */
void read_file(struct stream *s, struct table_entry *root);
+/* Inserts the file specified by `path` into the table linked list
+ specified by `root`. */
+struct table_entry *add_file(struct table_entry *root, char *path);
+
/* Traverses `root` for a node with the given key. If the linked list
lacks a node with the key, a new node is created and appended. */
struct table_entry *get_node(struct table_entry *root, uint32_t key);