2006-01-25 08:21:45 +01:00
|
|
|
#include "file.h"
|
|
|
|
#include "file_cache.h"
|
|
|
|
#include "file_io.h"
|
2006-01-23 21:05:09 +01:00
|
|
|
|
2006-01-28 23:19:42 +01:00
|
|
|
#include "file_stats.h" // must come after file and file_cache
|
|
|
|
|
2006-01-25 08:21:45 +01:00
|
|
|
#include "compression.h"
|
|
|
|
#include "zip.h"
|
|
|
|
#include "archive.h"
|
2006-01-23 21:05:09 +01:00
|
|
|
|
2006-01-25 08:21:45 +01:00
|
|
|
#include "vfs.h"
|
|
|
|
#include "vfs_path.h"
|
|
|
|
#include "vfs_mount.h"
|
|
|
|
#include "vfs_tree.h"
|
2006-03-07 06:44:34 +01:00
|
|
|
|
|
|
|
#include "trace.h"
|
2006-01-25 08:21:45 +01:00
|
|
|
#include "vfs_optimizer.h"
|
2006-01-23 21:05:09 +01:00
|
|
|
|
2006-01-25 08:21:45 +01:00
|
|
|
const size_t AIO_SECTOR_SIZE = 512;
|
2006-03-01 23:31:11 +01:00
|
|
|
|
|
|
|
// helper routine used by functions that call back to a FileIOCB.
|
|
|
|
//
|
|
|
|
// bytes_processed is 0 if return value != { ERR_OK, INFO_CB_CONTINUE }
|
|
|
|
// note: don't abort if = 0: zip callback may not actually
|
|
|
|
// output anything if passed very little data.
|
|
|
|
extern LibError file_io_call_back(const void* block, size_t size,
|
|
|
|
FileIOCB cb, uintptr_t ctx, size_t& bytes_processed);
|