@@ -78,16 +78,13 @@ struct JsAPIHooks
7878 typedef JsErrorCode (WINAPI *JsrtCreateExternalArrayBuffer)(void *data, unsigned int byteLength, JsFinalizeCallback finalizeCallback, void *callbackState, JsValueRef *result);
7979 typedef JsErrorCode (WINAPI *JsrtCreatePropertyId)(const char *name, size_t length, JsPropertyIdRef *propertyId);
8080
81- typedef JsErrorCode (WINAPI *JsrtTTDCreateRecordRuntimePtr)(JsRuntimeAttributes attributes, const byte* infoUri, size_t infoUriCount, size_t snapInterval, size_t snapHistoryLength, JsTTDInitializeForWriteLogStreamCallback writeInitializeFunction, TTDOpenResourceStreamCallback openResourceStream, JsTTDReadBytesFromStreamCallback readBytesFromStream , JsTTDWriteBytesToStreamCallback writeBytesToStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream, JsThreadServiceCallback threadService, JsRuntimeHandle *runtime);
82- typedef JsErrorCode (WINAPI *JsrtTTDCreateReplayRuntimePtr)(JsRuntimeAttributes attributes, const byte * infoUri, size_t infoUriCount, bool enableDebugging, JsTTDInitializeForWriteLogStreamCallback writeInitializeFunction, TTDOpenResourceStreamCallback openResourceStream, JsTTDReadBytesFromStreamCallback readBytesFromStream, JsTTDWriteBytesToStreamCallback writeBytesToStream , JsTTDFlushAndCloseStreamCallback flushAndCloseStream, JsThreadServiceCallback threadService, JsRuntimeHandle *runtime);
81+ typedef JsErrorCode (WINAPI *JsrtTTDCreateRecordRuntimePtr)(JsRuntimeAttributes attributes, size_t snapInterval, size_t snapHistoryLength, TTDOpenResourceStreamCallback openResourceStream, JsTTDWriteBytesToStreamCallback writeBytesToStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream, JsThreadServiceCallback threadService, JsRuntimeHandle *runtime);
82+ typedef JsErrorCode (WINAPI *JsrtTTDCreateReplayRuntimePtr)(JsRuntimeAttributes attributes, const char * infoUri, size_t infoUriCount, bool enableDebugging, TTDOpenResourceStreamCallback openResourceStream, JsTTDReadBytesFromStreamCallback readBytesFromStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream, JsThreadServiceCallback threadService, JsRuntimeHandle *runtime);
8383 typedef JsErrorCode (WINAPI *JsrtTTDCreateContextPtr)(JsRuntimeHandle runtime, bool useRuntimeTTDMode, JsContextRef *newContext);
8484 typedef JsErrorCode (WINAPI *JsrtTTDNotifyContextDestroyPtr)(JsContextRef context);
8585
86- typedef JsErrorCode (WINAPI *JsrtTTDSetIOCallbacksPtr)(JsRuntimeHandle runtime, JsTTDInitializeForWriteLogStreamCallback writeInitializeFunction, TTDOpenResourceStreamCallback openTTDStream, JsTTDReadBytesFromStreamCallback readBytesFromStream, JsTTDWriteBytesToStreamCallback writeBytesToStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream);
87-
8886 typedef JsErrorCode (WINAPI *JsrtTTDStartPtr)();
8987 typedef JsErrorCode (WINAPI *JsrtTTDStopPtr)();
90- typedef JsErrorCode (WINAPI *JsrtTTDEmitRecordingPtr)();
9188
9289 typedef JsErrorCode (WINAPI *JsrtTTDNotifyYieldPtr)();
9390 typedef JsErrorCode (WINAPI *JsrtTTDHostExitPtr)(int statusCode);
@@ -174,11 +171,8 @@ struct JsAPIHooks
174171 JsrtTTDCreateContextPtr pfJsrtTTDCreateContext;
175172 JsrtTTDNotifyContextDestroyPtr pfJsrtTTDNotifyContextDestroy;
176173
177- JsrtTTDSetIOCallbacksPtr pfJsrtTTDSetIOCallbacks;
178-
179174 JsrtTTDStartPtr pfJsrtTTDStart;
180175 JsrtTTDStopPtr pfJsrtTTDStop;
181- JsrtTTDEmitRecordingPtr pfJsrtTTDEmitRecording;
182176
183177 JsrtTTDNotifyYieldPtr pfJsrtTTDNotifyYield;
184178 JsrtTTDHostExitPtr pfJsrtTTDHostExit;
@@ -350,14 +344,13 @@ class ChakraRTInterface
350344 static JsErrorCode WINAPI JsSetModuleHostInfo (JsModuleRecord requestModule, JsModuleHostInfoKind moduleHostInfo, void * hostInfo) { return HOOK_JS_API (SetModuleHostInfo (requestModule, moduleHostInfo, hostInfo)); }
351345 static JsErrorCode WINAPI JsGetModuleHostInfo (JsModuleRecord requestModule, JsModuleHostInfoKind moduleHostInfo, void ** hostInfo) { return HOOK_JS_API (GetModuleHostInfo (requestModule, moduleHostInfo, hostInfo)); }
352346
353- static JsErrorCode WINAPI JsTTDCreateRecordRuntime (JsRuntimeAttributes attributes, const byte* infoUri, size_t infoUriCount, size_t snapInterval, size_t snapHistoryLength, JsTTDInitializeForWriteLogStreamCallback writeInitializeFunction, TTDOpenResourceStreamCallback openResourceStream, JsTTDReadBytesFromStreamCallback readBytesFromStream, JsTTDWriteBytesToStreamCallback writeBytesToStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream, JsThreadServiceCallback threadService, JsRuntimeHandle *runtime) { return HOOK_JS_API (TTDCreateRecordRuntime (attributes, infoUri, infoUriCount, snapInterval, snapHistoryLength, writeInitializeFunction, openResourceStream, readBytesFromStream , writeBytesToStream, flushAndCloseStream, threadService, runtime)); }
354- static JsErrorCode WINAPI JsTTDCreateReplayRuntime (JsRuntimeAttributes attributes, const byte * infoUri, size_t infoUriCount, JsTTDInitializeForWriteLogStreamCallback writeInitializeFunction, TTDOpenResourceStreamCallback openResourceStream, JsTTDReadBytesFromStreamCallback readBytesFromStream, JsTTDWriteBytesToStreamCallback writeBytesToStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream, JsThreadServiceCallback threadService, JsRuntimeHandle *runtime) { return HOOK_JS_API (TTDCreateReplayRuntime (attributes, infoUri, infoUriCount, false , writeInitializeFunction, openResourceStream, readBytesFromStream, writeBytesToStream , flushAndCloseStream, threadService, runtime)); }
347+ static JsErrorCode WINAPI JsTTDCreateRecordRuntime (JsRuntimeAttributes attributes, size_t snapInterval, size_t snapHistoryLength, TTDOpenResourceStreamCallback openResourceStream, JsTTDWriteBytesToStreamCallback writeBytesToStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream, JsThreadServiceCallback threadService, JsRuntimeHandle *runtime) { return HOOK_JS_API (TTDCreateRecordRuntime (attributes, snapInterval, snapHistoryLength, openResourceStream, writeBytesToStream, flushAndCloseStream, threadService, runtime)); }
348+ static JsErrorCode WINAPI JsTTDCreateReplayRuntime (JsRuntimeAttributes attributes, const char * infoUri, size_t infoUriCount, TTDOpenResourceStreamCallback openResourceStream, JsTTDReadBytesFromStreamCallback readBytesFromStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream, JsThreadServiceCallback threadService, JsRuntimeHandle *runtime) { return HOOK_JS_API (TTDCreateReplayRuntime (attributes, infoUri, infoUriCount, false , openResourceStream, readBytesFromStream, flushAndCloseStream, threadService, runtime)); }
355349 static JsErrorCode WINAPI JsTTDCreateContext (JsRuntimeHandle runtime, bool useRuntimeTTDMode, JsContextRef *newContext) { return HOOK_JS_API (TTDCreateContext (runtime, useRuntimeTTDMode, newContext)); }
356350 static JsErrorCode WINAPI JsTTDNotifyContextDestroy (JsContextRef context) { return HOOK_JS_API (TTDNotifyContextDestroy (context)); }
357351
358352 static JsErrorCode WINAPI JsTTDStart () { return HOOK_JS_API (TTDStart ()); }
359353 static JsErrorCode WINAPI JsTTDStop () { return HOOK_JS_API (TTDStop ()); }
360- static JsErrorCode WINAPI JsTTDEmitRecording () { return HOOK_JS_API (TTDEmitRecording ()); }
361354
362355 static JsErrorCode WINAPI JsTTDNotifyYield () { return HOOK_JS_API (TTDNotifyYield ()); }
363356 static JsErrorCode WINAPI JsTTDHostExit (int statusCode) { return HOOK_JS_API (TTDHostExit (statusCode)); }
0 commit comments