diff options
| author | jakob <jakob@memeware.net> | 2017-05-11 16:21:27 -0400 |
|---|---|---|
| committer | jakob <jakob@memeware.net> | 2017-05-11 16:21:27 -0400 |
| commit | 93919335b1cff88127cb1d6e2ad1762dd7bf353e (patch) | |
| tree | 442f9b1733bfde3acc4263252ae4a971850be096 /src/table.h | |
| parent | 1885dd37171b1cf95210e7a4850c2179f21a9e08 (diff) | |
Finished basic table dumping functionality
Diffstat (limited to 'src/table.h')
| -rw-r--r-- | src/table.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/table.h b/src/table.h index 89189c6..d9e9f53 100644 --- a/src/table.h +++ b/src/table.h @@ -73,3 +73,10 @@ void entry_append(struct table_entry *root, struct table_entry *e); /* Frees every entry in the linked list specified by `cur`. */ void entry_free(struct table_entry *cur); + +/* Dumps the XP3 table specified by `root` into `fp`. */ +void dump_table(FILE *fp, 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); |