X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fgestalt.c;h=b553c6ec6a5c3c919774186e901a17aaf432a353;hb=07959e767424a4779abbac3a73fe626ba89ea566;hp=eef77489990aae324282325892a387e94a239f38;hpb=bdb4a6360e2d9fabf6d16f3a87927cfbba5f304a;p=projects%2Fchimara%2Fchimara.git diff --git a/libchimara/gestalt.c b/libchimara/gestalt.c index eef7748..b553c6e 100644 --- a/libchimara/gestalt.c +++ b/libchimara/gestalt.c @@ -1,11 +1,12 @@ #include /* Surprisingly, the only symbol needed is NULL */ #include #include "glk.h" +#include "input.h" /* Version of the Glk specification implemented by this library */ #define MAJOR_VERSION 0 #define MINOR_VERSION 7 -#define SUB_VERSION 2 +#define SUB_VERSION 3 /** * glk_gestalt: @@ -108,6 +109,10 @@ glk_gestalt_ext(glui32 sel, glui32 val, glui32 *arr, glui32 arrlen) case gestalt_DrawImage: return val == wintype_Graphics || val == wintype_TextBuffer; + /* Which keycodes can be used as line terminators */ + case gestalt_LineTerminatorKey: + return is_valid_line_terminator(val)? 1 : 0; + /* Capabilities that are simply supported */ case gestalt_Unicode: case gestalt_Timer: @@ -115,6 +120,9 @@ glk_gestalt_ext(glui32 sel, glui32 val, glui32 *arr, glui32 arrlen) case gestalt_Graphics: case gestalt_GraphicsTransparency: case gestalt_DateTime: + case gestalt_UnicodeNorm: + case gestalt_LineInputEcho: + case gestalt_LineTerminators: return 1; /* Capabilities supported if compiled with GStreamer */ @@ -122,6 +130,7 @@ glk_gestalt_ext(glui32 sel, glui32 val, glui32 *arr, glui32 arrlen) case gestalt_SoundVolume: case gestalt_SoundNotify: case gestalt_SoundMusic: + case gestalt_Sound2: #ifdef GSTREAMER_SOUND return 1; #else @@ -129,10 +138,8 @@ glk_gestalt_ext(glui32 sel, glui32 val, glui32 *arr, glui32 arrlen) #endif /* Unsupported capabilities */ - case gestalt_LineInputEcho: - case gestalt_LineTerminatorKey: - case gestalt_LineTerminators: - case gestalt_UnicodeNorm: + /* none! */ + /* Selector not supported */ default: return 0;