projects
/
projects
/
chimara
/
chimara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add tests for new sound API
[projects/chimara/chimara.git]
/
libchimara
/
gestalt.c
diff --git
a/libchimara/gestalt.c
b/libchimara/gestalt.c
index 13193fcc6c485742903595e89038c9ea23a98980..2b6c29c08a32ac8c3514757e3e516be94e638b5f 100644
(file)
--- a/
libchimara/gestalt.c
+++ b/
libchimara/gestalt.c
@@
-1,6
+1,7
@@
#include <stddef.h> /* Surprisingly, the only symbol needed is NULL */
#include <config.h>
#include "glk.h"
#include <stddef.h> /* Surprisingly, the only symbol needed is NULL */
#include <config.h>
#include "glk.h"
+#include "input.h"
/* Version of the Glk specification implemented by this library */
#define MAJOR_VERSION 0
/* Version of the Glk specification implemented by this library */
#define MAJOR_VERSION 0
@@
-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;
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:
/* Capabilities that are simply supported */
case gestalt_Unicode:
case gestalt_Timer:
@@
-116,6
+121,8
@@
glk_gestalt_ext(glui32 sel, glui32 val, glui32 *arr, glui32 arrlen)
case gestalt_GraphicsTransparency:
case gestalt_DateTime:
case gestalt_UnicodeNorm:
case gestalt_GraphicsTransparency:
case gestalt_DateTime:
case gestalt_UnicodeNorm:
+ case gestalt_LineInputEcho:
+ case gestalt_LineTerminators:
return 1;
/* Capabilities supported if compiled with GStreamer */
return 1;
/* Capabilities supported if compiled with GStreamer */
@@
-130,9
+137,10
@@
glk_gestalt_ext(glui32 sel, glui32 val, glui32 *arr, glui32 arrlen)
#endif
/* Unsupported capabilities */
#endif
/* Unsupported capabilities */
- case gestalt_LineInputEcho:
- case gestalt_LineTerminatorKey:
- case gestalt_LineTerminators:
+ /* We do not support the entire new sound suite yet */
+ case gestalt_Sound2:
+ return 0;
+
/* Selector not supported */
default:
return 0;
/* Selector not supported */
default:
return 0;