#pragma warning disable CS0649 // Field is never assigned to using System.Runtime.InteropServices; namespace Whisper.Internal { /// A callback to get notified about the progress [UnmanagedFunctionPointer( CallingConvention.StdCall )] delegate int pfnReportProgress( double value, IntPtr context, IntPtr pv ); /// C structure with a progress reporting function pointer public struct sProgressSink { /// A callback to get notified about the progress [MarshalAs( UnmanagedType.FunctionPtr )] internal pfnReportProgress? pfn; /// Last parameter to the callback internal IntPtr pv; } }