steed/src/sdl-instead/idf.h

28 lines
789 B
C
Raw Normal View History

2011-04-17 18:00:16 +03:00
#ifndef __IDF_H_INCLUDED
#define __IDF_H_INCLUDED
struct _idf_t;
2011-04-18 15:32:21 +03:00
struct _idff_t;
2011-04-17 18:00:16 +03:00
typedef struct _idf_t *idf_t;
2011-04-18 15:32:21 +03:00
typedef struct _idff_t *idff_t;
2011-04-17 18:00:16 +03:00
extern idf_t idf_init(const char *path);
2011-04-18 11:32:51 +03:00
extern void idf_shrink(idf_t idf);
2011-04-17 18:00:16 +03:00
extern void idf_done(idf_t idf);
extern int idf_create(const char *file, const char *path);
2011-04-18 15:32:21 +03:00
extern idff_t idf_open(idf_t idf, const char *fname);
extern int idf_seek(idff_t fil, int offset, int whence);
extern int idf_read(idff_t fil, void *ptr, int size, int maxnum);
extern int idf_close(idff_t fil);
extern int idf_eof(idff_t idf);
extern int idf_error(idff_t idf);
2011-04-18 16:39:20 +03:00
extern int idf_access(idf_t idf, const char *fname);
extern char *idf_gets(idff_t idf, char *b, int size);
2011-04-18 20:48:25 +03:00
extern int idf_magic(const char *fname);
2011-04-19 10:51:18 +03:00
extern int idf_only(idf_t idf, int fl);
2011-04-17 18:00:16 +03:00
2011-04-19 13:57:52 +03:00
#endif