diff options
Diffstat (limited to 'src/extract.h')
| -rw-r--r-- | src/extract.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/extract.h b/src/extract.h index 9aea965..10965a5 100644 --- a/src/extract.h +++ b/src/extract.h @@ -30,9 +30,12 @@ typedef struct { Bytef *data; } memory_stream; -/* Handles decompression of the archive, as well as - parsing, decrypting and writing the table entries. */ -void extract(FILE *archive, uint64_t table_offset); +/* Decrypts and writes files in the XP3 archive + to disk according to table entries. */ +void extract(memory_stream data_stream, FILE *archive); + +/* Simply lists the contents of an archive, ignoring File entries. */ +void list(memory_stream data_stream); /* Wrapper for memcpy which increments the source operand by the amount of bytes read to simulate a file stream. */ |