From 8c4603c73675958efc960fbd4bb599a2909d106a Mon Sep 17 00:00:00 2001 From: Konstantin Date: Mon, 16 Jan 2023 14:52:43 +0100 Subject: Source codes --- Whisper/API/sLoadModelCallbacks.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Whisper/API/sLoadModelCallbacks.h (limited to 'Whisper/API/sLoadModelCallbacks.h') diff --git a/Whisper/API/sLoadModelCallbacks.h b/Whisper/API/sLoadModelCallbacks.h new file mode 100644 index 0000000..f5248c6 --- /dev/null +++ b/Whisper/API/sLoadModelCallbacks.h @@ -0,0 +1,14 @@ +#pragma once + +namespace Whisper +{ + using pfnLoadProgress = HRESULT( __stdcall* )( double val, void* pv ) noexcept; + using pfnCancel = HRESULT( __stdcall* )( void* pv ) noexcept; + + struct sLoadModelCallbacks + { + pfnLoadProgress progress; + pfnCancel cancel; + void* pv; + }; +} \ No newline at end of file -- cgit v1.2.3