Subversion Repositories Games.Carmageddon

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #ifndef _FILE_H_
  2. #define _FILE_H_
  3.  
  4. #include "brender/br_types.h"
  5.  
  6. void _BrFileFree(void* res, br_uint_8 res_class, br_size_t size);
  7.  
  8. br_uint_32 BrFileAttributes(void);
  9.  
  10. void* BrFileOpenRead(char* name, br_size_t n_magics, br_mode_test_cbfn* mode_test, int* mode_result);
  11.  
  12. void* BrFileOpenWrite(char* name, int mode);
  13.  
  14. void BrFileClose(void* f);
  15.  
  16. int BrFileEof(void* f);
  17.  
  18. int BrFileGetChar(void* f);
  19.  
  20. void BrFilePutChar(int c, void* f);
  21.  
  22. int BrFileRead(void* buf, int size, int n, void* f);
  23.  
  24. int BrFileWrite(void* buf, int size, int n, void* f);
  25.  
  26. int BrFileGetLine(char* buf, br_size_t buf_len, void* f);
  27.  
  28. void BrFilePutLine(char* buf, void* f);
  29.  
  30. void BrFileAdvance(long count, void* f);
  31.  
  32. int BrFilePrintf(void* f, char* fmt, ...);
  33.  
  34. #endif
  35.