2009-07-15 17:20:45 +00:00
|
|
|
#ifndef _FSTFILE_H_
|
|
|
|
#define _FSTFILE_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2009-07-30 05:41:12 +00:00
|
|
|
extern "C" {
|
2009-07-15 17:20:45 +00:00
|
|
|
#endif
|
|
|
|
|
2009-07-30 05:41:12 +00:00
|
|
|
typedef struct {
|
|
|
|
u8 filetype;
|
|
|
|
char name_offset[3];
|
|
|
|
u32 fileoffset;
|
|
|
|
u32 filelen;
|
|
|
|
} __attribute__((packed)) FST_ENTRY;
|
2009-07-15 17:20:45 +00:00
|
|
|
|
2009-07-30 05:41:12 +00:00
|
|
|
char *fstfiles(FST_ENTRY *fst, u32 index);
|
|
|
|
char *fstfilename(u32 index);
|
|
|
|
u32 fstfileoffset(u32 index);
|
2009-07-15 17:20:45 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|