summaryrefslogtreecommitdiff
path: root/Source/Library/Interface/File.iface.h
blob: e1030b89417fbf0f5e602f7c038117d9d7bd201d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef DEF_FILE_IFACE_H
#define DEF_FILE_IFACE_H

enum {
	FM_READ = 0,		//Open for read, put cursor at beginning
	FM_TRUNCATE = 1,	//Open for write, truncating file before
	FM_APPEND = 2,		//Open for write, put cursor at end
	FM_REPLACE = 3		//Open for write, put cursor at beginning
};

enum {
	SM_FORWARD = 0,		//Seek from actual position
	SM_BACKWARD = 1,	//Seek from actual position, backward
	SM_BEGINNING = 2,	//Seek from start of file
	SM_END = 3,			//Seek from end of file
};

#define FLIF_OBJTYPE 0x13

#define FLIF_SOPEN 0x01

#define FLIF_CLOSE 0x05
#define FLIF_VALID 0x06

#define FLIF_READ 0x0A
#define FLIF_WRITE 0x0B

#define FLIF_SEEK 0x10
#define FLIF_POSITION 0x11
#define FLIF_LENGTH 0x12
#define FLIF_EOF 0x13

#endif