summaryrefslogtreecommitdiffstats
path: root/Whisper/API/sLoadModelCallbacks.h
blob: 8f274c6c14b2476a6516315679f7b0e5d1fe60d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

namespace Whisper
{
	using pfnLoadProgress = HRESULT( __stdcall* )( double val, void* pv ) noexcept;
	// Return S_OK to continue, or S_FALSE to fail with "The operation was canceled by the user" status code
	using pfnCancel = HRESULT( __stdcall* )( void* pv ) noexcept;
	
	struct sLoadModelCallbacks
	{
		pfnLoadProgress progress;
		pfnCancel cancel;
		void* pv;
	};
}