mirror of
https://github.com/Const-me/Whisper.git
synced 2026-10-28 10:56:35 +08:00
17 lines
434 B
C#
17 lines
434 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Whisper.Internal
|
|
{
|
|
[UnmanagedFunctionPointer( CallingConvention.StdCall )]
|
|
delegate void pfnLoggerSink( IntPtr context, eLogLevel lvl, [MarshalAs( UnmanagedType.LPUTF8Str )] string message );
|
|
|
|
struct sLoggerSetup
|
|
{
|
|
[MarshalAs( UnmanagedType.FunctionPtr )]
|
|
public pfnLoggerSink sink;
|
|
IntPtr context;
|
|
public eLogLevel level;
|
|
public eLoggerFlags flags;
|
|
}
|
|
} |