assaultfish/engine/include/GearSrc/File.h

26 lines
609 B
C
Raw Normal View History

2026-01-12 01:55:20 +09:00
#ifndef __GEARSRC_FILE_H__
#define __GEARSRC_FILE_H__
2026-01-12 01:54:35 +09:00
#include <GearSrc/MachDep.h>
#include <GearSrc/TypeDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
2026-01-12 05:12:54 +09:00
/* file.c */
2026-01-12 01:54:35 +09:00
GSDECL GSFile GSFileOpen(GSEngine engine, const char* path);
GSDECL int GSFileRead(GSFile file, void* out, int size);
GSDECL void GSFileSeek(GSFile file, int pos);
2026-01-12 11:48:26 +09:00
GSDECL void GSFileSeekFromCurrent(GSFile file, int pos);
2026-01-12 01:54:35 +09:00
GSDECL unsigned int GSFileSize(GSFile file);
GSDECL void GSFileClose(GSFile file);
2026-01-12 05:12:54 +09:00
/* getline.c */
2026-01-25 05:18:56 +09:00
GSDECL int GSFileGetLine(GSFile file, char** lineptr, int* n);
2026-01-12 05:12:54 +09:00
2026-01-12 01:54:35 +09:00
#ifdef __cplusplus
}
#endif
#endif