summaryrefslogtreecommitdiff
path: root/src/table.h
diff options
context:
space:
mode:
authorjakob <jakob@memeware.net>2017-05-11 20:18:08 -0400
committerjakob <jakob@memeware.net>2017-05-11 20:18:08 -0400
commit986a9e120d79f625cbd7b4c59ccfd479a6a149ec (patch)
treed01d04bf547d15856a1471af7312b10c9c47ff53 /src/table.h
parent93919335b1cff88127cb1d6e2ad1762dd7bf353e (diff)
Reimplemented table dumping functions to operate on streams instead of file pointers
Diffstat (limited to 'src/table.h')
-rw-r--r--src/table.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/table.h b/src/table.h
index d9e9f53..dd01fa3 100644
--- a/src/table.h
+++ b/src/table.h
@@ -27,7 +27,7 @@
/* Structure representing one segment associated with a File entry. */
struct segment {
- bool compressed; /* Whether or not the segment is compressed. */
+ uint32_t compressed; /* Whether or not the segment is compressed. */
uint64_t offset; /* Offset to the segment's beginning. */
uint64_t compressed_size; /* Size of compressed segment. */
uint64_t decompressed_size; /* Size of decompressed segment. */
@@ -74,8 +74,8 @@ 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);
+/* Dumps the XP3 table specified by `root` into `s`. */
+void dump_table(struct stream *s, struct table_entry *root);
/* Inserts the file specified by `path` into the table linked list
specified by `root`. */