From f5dd5617326cbfb6240a35d4049b575853ed3ca8 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Sat, 11 Feb 2012 08:45:52 +0100 Subject: [PATCH] Update header file and spec version number --- docs/reference/chimara-docs.sgml | 2 +- libchimara/gestalt.c | 2 +- libchimara/glk.h | 13 +++++++++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/reference/chimara-docs.sgml b/docs/reference/chimara-docs.sgml index 6c9e7c1..7f739e7 100644 --- a/docs/reference/chimara-docs.sgml +++ b/docs/reference/chimara-docs.sgml @@ -19,7 +19,7 @@ - Glk API Specification, version 0.7.3 + Glk API Specification, version 0.7.4 diff --git a/libchimara/gestalt.c b/libchimara/gestalt.c index b553c6e..bf60e87 100644 --- a/libchimara/gestalt.c +++ b/libchimara/gestalt.c @@ -6,7 +6,7 @@ /* Version of the Glk specification implemented by this library */ #define MAJOR_VERSION 0 #define MINOR_VERSION 7 -#define SUB_VERSION 3 +#define SUB_VERSION 4 /** * glk_gestalt: diff --git a/libchimara/glk.h b/libchimara/glk.h index 3bcbc3d..f67a9e1 100644 --- a/libchimara/glk.h +++ b/libchimara/glk.h @@ -1,11 +1,11 @@ #ifndef GLK_H #define GLK_H -/* glk.h: Header file for Glk API, version 0.7.3. +/* glk.h: Header file for Glk API, version 0.7.4. Designed by Andrew Plotkin http://eblong.com/zarf/glk/ - This file is copyright 1998-2011 by Andrew Plotkin. You may copy, + This file is copyright 1998-2012 by Andrew Plotkin. You may copy, distribute, and incorporate it into your own programs, by any means and under any conditions, as long as you do not modify it. You may also modify this file, incorporate it into your own programs, @@ -35,6 +35,7 @@ typedef int32_t glsi32; #define GLK_MODULE_SOUND2 #define GLK_MODULE_HYPERLINKS #define GLK_MODULE_DATETIME +#define GLK_MODULE_RESOURCE_STREAM /* These types are opaque object identifiers. They're pointers to opaque C structures, which are defined differently by each library. */ @@ -68,6 +69,7 @@ typedef struct glk_schannel_struct *schanid_t; #define gestalt_LineTerminatorKey (19) #define gestalt_DateTime (20) #define gestalt_Sound2 (21) +#define gestalt_ResourceStream (22) #define evtype_None (0) #define evtype_Timer (1) @@ -430,4 +432,11 @@ extern glsi32 glk_date_to_simple_time_local(glkdate_t *date, glui32 factor); #endif /* GLK_MODULE_DATETIME */ +#ifdef GLK_MODULE_RESOURCE_STREAM + +extern strid_t glk_stream_open_resource(glui32 filenum, glui32 rock); +extern strid_t glk_stream_open_resource_uni(glui32 filenum, glui32 rock); + +#endif /* GLK_MODULE_RESOURCE_STREAM */ + #endif /* GLK_H */ -- 2.30.2