summaryrefslogtreecommitdiffstats
path: root/WhisperNet/Internal/sLoggerSetup.cs
blob: ed1baa4ce9a3f8cd8c062f38d55bdb8d622789a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
	}
}