- asset loader (needed for android)
[andemo] / src / assfile.h
1 #ifndef ASSFILE_H_
2 #define ASSFILE_H_
3
4 #include <stdlib.h>
5
6 typedef void ass_file;
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 ass_file *ass_fopen(const char *fname, const char *mode);
13 void ass_fclose(ass_file *fp);
14 long ass_fseek(ass_file *fp, long offs, int whence);
15 long ass_ftell(ass_file *fp);
16
17 size_t ass_fread(void *buf, size_t size, size_t count, ass_file *fp);
18
19 /* convenience functions, derived from the above */
20 int ass_fgetc(ass_file *fp);
21 char *ass_fgets(char *s, int size, ass_file *fp);
22
23 #ifdef __cplusplus
24 }
25 #endif
26
27 #endif  /* ASSFILE_H_ */