| 1 | /* $Header$ */ |
| 2 | |
| 3 | /* |
| 4 | * Copyright (c) 1997, 2002 Michael J. Roberts. All Rights Reserved. |
| 5 | * |
| 6 | * Please see the accompanying license file, LICENSE.TXT, for information |
| 7 | * on using and copying this software. |
| 8 | */ |
| 9 | /* |
| 10 | Name |
| 11 | osifctyp.h - TADS OS interface datatype definitions |
| 12 | Function |
| 13 | Defines certain datatypes used in the TADS operating system interface |
| 14 | Notes |
| 15 | DO NOT MODIFY THIS FILE WITH PLATFORM-SPECIFIC DEFINITIONS. This file |
| 16 | defines types that are part of the portable interface; these types do |
| 17 | not vary by platform. |
| 18 | |
| 19 | These types are defined separately from osifc.h so that they can be |
| 20 | #include'd before the OS-specific header. osifc.h is included after |
| 21 | the OS-specific header. |
| 22 | */ |
| 23 | |
| 24 | |
| 25 | /* ------------------------------------------------------------------------ */ |
| 26 | /* |
| 27 | * File types. These type codes are used when opening or creating a |
| 28 | * file, so that the OS routine can set appropriate file system metadata |
| 29 | * to describe or find the file type. |
| 30 | * |
| 31 | * The type os_filetype_t is defined for documentary purposes; it's |
| 32 | * always just an int. |
| 33 | */ |
| 34 | typedef int os_filetype_t; |
| 35 | #define OSFTGAME 0 /* a game data file (.gam) */ |
| 36 | #define OSFTSAVE 1 /* a saved game (.sav) */ |
| 37 | #define OSFTLOG 2 /* a transcript (log) file */ |
| 38 | #define OSFTSWAP 3 /* swap file */ |
| 39 | #define OSFTDATA 4 /* user data file (used with the TADS fopen() call) */ |
| 40 | #define OSFTCMD 5 /* QA command/log file */ |
| 41 | #define OSFTERRS 6 /* error message file */ |
| 42 | #define OSFTTEXT 7 /* text file - used for source files */ |
| 43 | #define OSFTBIN 8 /* binary file of unknown type - resources, etc */ |
| 44 | #define OSFTCMAP 9 /* character mapping file */ |
| 45 | #define OSFTPREF 10 /* preferences file */ |
| 46 | #define OSFTUNK 11 /* unknown - as a filter, matches any file type */ |
| 47 | #define OSFTT3IMG 12 /* T3 image file (.t3 - formerly .t3x) */ |
| 48 | #define OSFTT3OBJ 13 /* T3 object file (.t3o) */ |
| 49 | #define OSFTT3SYM 14 /* T3 symbol export file (.t3s) */ |
| 50 | #define OSFTT3SAV 15 /* T3 saved state file (.t3v) */ |
| 51 | |
| 52 |