summaryrefslogtreecommitdiffstats
path: root/Whisper/API/sLoadModelCallbacks.h
diff options
context:
space:
mode:
authorKonstantin <const@const.me>2023-01-16 14:52:43 +0100
committerKonstantin <const@const.me>2023-01-16 14:52:43 +0100
commit8c4603c73675958efc960fbd4bb599a2909d106a (patch)
tree714dc6fc9a1672d5fd7f89676b97e10959662abc /Whisper/API/sLoadModelCallbacks.h
parent990a8d0dbaefc996244097397259e92758b15cce (diff)
Source codes
Diffstat (limited to 'Whisper/API/sLoadModelCallbacks.h')
-rw-r--r--Whisper/API/sLoadModelCallbacks.h14
1 files changed, 14 insertions, 0 deletions
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