=bmesh= merge from trunk at r36529
[blender.git] / intern / ghost / intern / GHOST_C-api.cpp
index 7ba8d7db411c3d281a1bb9dce7ea47c8804d1165..2044ce4d3ecf26a2e347d9bbacb828cf99c80f78 100644 (file)
@@ -100,6 +100,39 @@ GHOST_TimerTaskHandle GHOST_InstallTimer(GHOST_SystemHandle systemhandle,
        return (GHOST_TimerTaskHandle) system->installTimer(delay, interval, timerproc, userdata);
 }
 
+GHOST_TSuccess GHOST_RecordEvents(GHOST_SystemHandle systemhandle, FILE *file)
+{
+       GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
+       
+       return system->beginRecord(file);
+}
+
+GHOST_TSuccess GHOST_StopRecording(GHOST_SystemHandle systemhandle)
+{
+       GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
+       
+       return system->endRecord();
+}
+
+GHOST_TSuccess GHOST_PlaybackEvents(GHOST_SystemHandle systemhandle, FILE *file)
+{
+       GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
+       
+       return system->playbackEvents(file);
+}
+
+int GHOST_PlayingEvents(GHOST_SystemHandle systemhandle)
+{
+       GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
+       return system->playingEvents(NULL);
+}
+
+int GHOST_RecordingEvents(GHOST_SystemHandle systemhandle)
+{
+       GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
+       
+       return system->recordingEvents();
+}
 
 
 GHOST_TSuccess GHOST_RemoveTimer(GHOST_SystemHandle systemhandle,