Implemented date/time Glk functions
[projects/chimara/chimara.git] / libchimara / gestalt.c
index 15a754afe3a431260cce25aa17d96dbe00f3d177..e2eceefdfced743b2e965560aa85d6bfcf348f96 100644 (file)
@@ -1,10 +1,11 @@
 #include <stddef.h> /* Surprisingly, the only symbol needed is NULL */
+#include <config.h>
 #include "glk.h"
 
 /* Version of the Glk specification implemented by this library */
 #define MAJOR_VERSION 0
 #define MINOR_VERSION 7
-#define SUB_VERSION   0
+#define SUB_VERSION   2
 
 /**
  * glk_gestalt:
@@ -125,7 +126,14 @@ glk_gestalt_ext(glui32 sel, glui32 val, glui32 *arr, glui32 arrlen)
                case gestalt_GraphicsTransparency:
                        return 1;
 
+               case gestalt_DateTime:
+                       return 1;
+
+               /* Capabilities supported if compiled with GStreamer */
                case gestalt_Sound:
+               case gestalt_SoundVolume:
+               case gestalt_SoundNotify:
+               case gestalt_SoundMusic:
 #ifdef GSTREAMER_SOUND
                        return 1;
 #else
@@ -133,9 +141,10 @@ glk_gestalt_ext(glui32 sel, glui32 val, glui32 *arr, glui32 arrlen)
 #endif
                        
                /* Unsupported capabilities */
-               case gestalt_SoundVolume:
-               case gestalt_SoundNotify:
-               case gestalt_SoundMusic:
+               case gestalt_LineInputEcho:
+               case gestalt_LineTerminatorKey:
+               case gestalt_LineTerminators:
+               case gestalt_UnicodeNorm:
                /* Selector not supported */    
                default:
                        return 0;