| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
#ifndef GT_START_H |
| 17 |
#define GT_START_H |
| 18 |
|
| 19 |
#ifdef __cplusplus |
| 20 |
extern "C" { |
| 21 |
#endif |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
#ifndef TRUE |
| 26 |
#define TRUE 1 |
| 27 |
#endif |
| 28 |
#ifndef FALSE |
| 29 |
#define FALSE 0 |
| 30 |
#endif |
| 31 |
#ifndef NULL |
| 32 |
#define NULL 0 |
| 33 |
#endif |
| 34 |
|
| 35 |
#define glkunix_arg_End (0) |
| 36 |
#define glkunix_arg_ValueFollows (1) |
| 37 |
#define glkunix_arg_NoValue (2) |
| 38 |
#define glkunix_arg_ValueCanFollow (3) |
| 39 |
#define glkunix_arg_NumberValue (4) |
| 40 |
|
| 41 |
typedef struct glkunix_argumentlist_struct { |
| 42 |
char *name; |
| 43 |
int argtype; |
| 44 |
char *desc; |
| 45 |
} glkunix_argumentlist_t; |
| 46 |
|
| 47 |
typedef struct glkunix_startup_struct { |
| 48 |
int argc; |
| 49 |
char **argv; |
| 50 |
} glkunix_startup_t; |
| 51 |
|
| 52 |
extern glkunix_argumentlist_t glkunix_arguments[]; |
| 53 |
|
| 54 |
extern int glkunix_startup_code(glkunix_startup_t *data); |
| 55 |
|
| 56 |
#define GLKUNIX_FILEREF_GET_FILENAME (1) |
| 57 |
|
| 58 |
extern void glkunix_set_base_file(char *filename); |
| 59 |
extern strid_t glkunix_stream_open_pathname_gen(char *pathname, |
| 60 |
glui32 writemode, glui32 textmode, glui32 rock); |
| 61 |
extern strid_t glkunix_stream_open_pathname(char *pathname, glui32 textmode, |
| 62 |
glui32 rock); |
| 63 |
#ifdef GLKUNIX_FILEREF_GET_FILENAME |
| 64 |
extern const char *glkunix_fileref_get_filename(frefid_t fref); |
| 65 |
#endif |
| 66 |
|
| 67 |
#ifdef __cplusplus |
| 68 |
} |
| 69 |
#endif |
| 70 |
|
| 71 |
#endif |
| 72 |
|