From 986a9e120d79f625cbd7b4c59ccfd479a6a149ec Mon Sep 17 00:00:00 2001 From: jakob Date: Thu, 11 May 2017 20:18:08 -0400 Subject: Reimplemented table dumping functions to operate on streams instead of file pointers --- src/table.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/table.h') 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`. */ -- cgit v1.3