31#define GOEP_O_RDONLY 0x0000
32#define GOEP_O_WRONLY 0x0001
33#define GOEP_O_RDWR 0x0002
35#define GOEP_O_CREAT 0x0100
36#define GOEP_O_EXCL 0x0200
37#define GOEP_O_TRUNC 0x1000
40#define GOEP_LEN_UNKNOWN 0xFFFFFFFF
41#define GOEP_INVALID_FD (-1)
45#define GOEP_ACC_EXIST 0x0
46#define GOEP_ACC_READ 0x4
47#define GOEP_ACC_RDWR 0x6
50#define GOEP_A_RDONLY 0x1
53#define GOEP_CTIME_LEN 17
59#define GOEP_SEEK_SET 0
60#define GOEP_SEEK_CUR 1
61#define GOEP_SEEK_END 2
68typedef INT32 tGOEP_FD;
83typedef UINT16 tGOEP_STATUS;
90 char crtime[GOEP_CTIME_LEN];
150typedef void (tGOEP_OPEN_CBACK) (
const UINT8 *p_name, UINT16 flags, UINT32 size,
151 UINT16 event_id, UINT8 app_id);
163typedef void (tGOEP_CLOSE_CBACK) (tGOEP_FD fd, UINT8 app_id);
182typedef void (tGOEP_READ_CBACK) (tGOEP_FD fd,
void *p_data, INT16 size,
183 UINT16 event_id, UINT8 app_id);
200typedef void (tGOEP_WRITE_CBACK) (tGOEP_FD fd,
const void *p_data, INT16 size,
201 UINT16 event_id, UINT8 app_id);
214typedef void (tGOEP_SEEK_CBACK) (tGOEP_FD fd, INT32 offset, INT16 origin, UINT8 app_id);
241typedef void (tGOEP_DIRENTRY_CBACK) (
const char *p_path, BOOLEAN first_item,
258typedef tGOEP_STATUS (tGOEP_ACCESS_CBACK) (
const char *p_path, UINT16 mode,
259 BOOLEAN *p_is_dir, UINT8 app_id);
276typedef tGOEP_STATUS (tGOEP_MKDIR_CBACK) (
const char *p_path, UINT8 app_id);
294typedef tGOEP_STATUS (tGOEP_RMDIR_CBACK) (
const char *p_path, UINT8 app_id);
311typedef tGOEP_STATUS (tGOEP_UNLINK_CBACK) (
const char *p_path, UINT8 app_id);
336GOEP_API
extern void GOEP_OpenRsp (tGOEP_FD fd, tGOEP_STATUS status,
337 UINT32 file_size, UINT16 event_id);
353GOEP_API
extern void GOEP_ReadRsp (tGOEP_FD fd, tGOEP_STATUS status,
354 UINT16 bytes_read, UINT16 event_id);
369GOEP_API
extern void GOEP_WriteRsp (tGOEP_FD fd, tGOEP_STATUS status, UINT16 event_id);
387GOEP_API
extern void GOEP_DirentryRsp(tGOEP_STATUS status, UINT16 event_id);