Debian Codegraph @

terps/glulxe/iosstart.h

raw symbols SCIP
1
2 #include "glk.h"
3 #include "iosglk_startup.h"
4
5 @class GlulxAccelEntry;
6 @class GlkObjIdEntry;
7
8 /* This structure contains VM state which is not stored in a normal save file, but which is needed for an autorestore.
9
10 (The reason it's not stored in a normal save file is that it's useless unless you serialize the entire Glk state along with the VM. Glulx normally doesn't do that, but for an iOS autosave, we do.)
11 */
12 typedef struct library_state_data_struct {
13 BOOL active;
14 glui32 protectstart, protectend;
15 glui32 iosys_mode, iosys_rock;
16 glui32 stringtable;
17 NSArray<NSNumber *> *accel_params;
18 NSArray<GlulxAccelEntry *> *accel_funcs;
19 glui32 gamefiletag;
20 NSArray<GlkObjIdEntry *> *id_map_list;
21 } library_state_data;
22
23 void iosglk_do_autosave(glui32 selector, glui32 arg0, glui32 arg1, glui32 arg2);
24 void iosglk_clear_autosave(void);
25 void iosglk_set_can_restart_flag(int);
26 int iosglk_can_restart_cleanly(void);
27 void iosglk_shut_down_process(void) GLK_ATTRIBUTE_NORETURN;
28
29
30 @interface GlkObjIdEntry : NSObject <NSSecureCoding> {
31 glui32 objclass;
32 glui32 tag;
33 glui32 dispid;
34 }
35
36 - (instancetype) initWithClass:(int)objclass tag:(NSNumber *)tag id:(glui32)dispid;
37 @property (NS_NONATOMIC_IOSONLY, readonly) glui32 objclass;
38 @property (NS_NONATOMIC_IOSONLY, readonly) glui32 tag;
39 @property (NS_NONATOMIC_IOSONLY, readonly) glui32 dispid;
40
41 @end
42
43
44 @interface GlulxAccelEntry : NSObject <NSSecureCoding> {
45 glui32 index;
46 glui32 addr;
47 }
48
49 - (instancetype) initWithIndex:(glui32)index addr:(glui32)addr;
50
51 @property (NS_NONATOMIC_IOSONLY, readonly) glui32 index;
52 @property (NS_NONATOMIC_IOSONLY, readonly) glui32 addr;
53
54 @end