0ad/source/lib/res/file/zip.h
janwas e07622b56a Cache: implement meat of landlord algorithm and add remove()
allocators: add freelist capability to Bucket; add provision for
variable XOR fixed size allocs
archive: re-tag file buffers if reading uncompressed from archive;
improve LFH fixup logic
file_cache: add cache line invalidation; lock down pages (readonly) when
IO finished
file_io: cleanup+docs; properly cut off at EOF without breaking
alignment.
file_stats: add seek accounting (WIP)
vfs_optimizer: also record file_buf_free in the trace. initial
implementation of archive builder (WIP)
zip: lfh_fixup now more efficient (does not involve buffer manager -
instead it grabs LFH from temp blocks)
tex: plug FileIOBuf leak. avoid writing to tex.hm because that is a
read-only file_buf.

This was SVN commit r3428.
2006-01-28 22:19:42 +00:00

19 lines
468 B
C
Executable File

#ifndef ZIP_H__
#define ZIP_H__
#include "archive.h"
#include "file.h"
extern LibError zip_populate_archive(Archive* a, File* f);
extern void zip_fixup_lfh(File* f, ArchiveEntry* ent);
struct ZipArchive;
extern LibError zip_archive_create(const char* zip_filename, ZipArchive** pza);
extern LibError zip_archive_add_file(ZipArchive* za, const ArchiveEntry* ze, void* file_contents);
extern LibError zip_archive_finish(ZipArchive* za);
#endif // #ifndef ZIP_H__