Patch non-Gargoyle Glk implementations to support some more functions
[gentoo-interactive-fiction.git] / dev-games / cheapglk / files / cheapglk-0.9.0-r1-garglk-extensions.patch
blob7ba446e4aaafa882c28581ff20cf0a37e8cd585b
1 Source: dleverton
2 Upstream: Gentoo-specific hack
3 Reason: allows Glk apps to use Gargoyle extensions without breaking
4 compatibility with other Glk libraries
6 --- cheapglk/cgfref.c~ 2004-11-24 03:14:08.000000000 +0000
7 +++ cheapglk/cgfref.c 2009-08-30 18:49:01.000000000 +0100
8 @@ -305,6 +305,11 @@
9 unlink(fref->filename);
12 +char* garglk_fileref_get_name(fileref_t *fref)
14 + return fref->filename;
17 /* This should only be called from startup code. */
18 void glkunix_set_base_file(char *filename)
20 --- cheapglk/cgmisc.c~ 2004-11-28 05:08:27.000000000 +0000
21 +++ cheapglk/cgmisc.c 2009-08-30 18:49:54.000000000 +0100
22 @@ -214,6 +214,30 @@
23 /* Don't make me laugh. */
26 +void garglk_set_program_name(const char *name)
30 +void garglk_set_program_info(const char *info)
34 +void garglk_set_story_name(const char *name)
38 +void garglk_set_config(const char *name)
42 +void garglk_set_zcolors(glui32 fg, glui32 bg)
46 +void garglk_set_reversevideo(glui32 reverse)
50 void gidispatch_set_object_registry(
51 gidispatch_rock_t (*regi)(void *obj, glui32 objclass),
52 void (*unregi)(void *obj, glui32 objclass, gidispatch_rock_t objrock))