forked from 0ad/0ad
janwas
44901d38b9
FILE_CACHE_BLOCK flag used more safely (copied in afile_read) add file_sector_size (set from sysdep code) documented and organized FileFlags moved publically visible file_buf* decls to file.h; add FileBufFlags file_buf_get: moved to file_io and renamed because it is not a part of the file_buf manager itself FILE_BLOCK_SIZE no longer exposed to users - it's an implementation detail. for alignment purposes, you should use file_sector_size (less wasteful) add page_aligned allocator (mmap) write buffers now allocated via file_buf_alloc(FB_FROM_HEAP) (avoids wasting cache space) append trace runs into the trace file (-> better input data for archive ordering) document lib_errors.h tex_load: add provision for file_flags, used by ogl_tex_load to prevent caching file data simulation, entitymanager: add perf measurements This was SVN commit r3725.
11 lines
258 B
C
11 lines
258 B
C
#ifndef FILE_IO_H__
|
|
#define FILE_IO_H__
|
|
|
|
extern void file_io_init();
|
|
extern void file_io_shutdown();
|
|
|
|
extern LibError file_io_get_buf(FileIOBuf* pbuf, size_t size,
|
|
const char* atom_fn, uint file_flags, FileIOCB cb);
|
|
|
|
#endif // #ifndef FILE_IO_H__
|