fix(interop): rename create-settings structs to avoid name collision with P/Invoke methods
Some checks failed
CI / build-and-test (push) Failing after 26s

This commit is contained in:
Zac Gaetano 2026-05-07 15:35:15 +00:00
parent 6f09ca35ef
commit 90b0951a42

View file

@ -34,7 +34,7 @@ internal static class NdiNative
// ---- Receive ---- // ---- Receive ----
[DllImport(LibName, EntryPoint = "NDIlib_recv_create_v3", CallingConvention = CallingConvention.Cdecl)] [DllImport(LibName, EntryPoint = "NDIlib_recv_create_v3", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr RecvCreateV3(ref RecvCreateV3 p_create_settings); public static extern IntPtr RecvCreateV3(ref RecvCreateV3Settings p_create_settings);
[DllImport(LibName, EntryPoint = "NDIlib_recv_destroy", CallingConvention = CallingConvention.Cdecl)] [DllImport(LibName, EntryPoint = "NDIlib_recv_destroy", CallingConvention = CallingConvention.Cdecl)]
public static extern void RecvDestroy(IntPtr p_instance); public static extern void RecvDestroy(IntPtr p_instance);
@ -52,7 +52,7 @@ internal static class NdiNative
// ---- Send ---- // ---- Send ----
[DllImport(LibName, EntryPoint = "NDIlib_send_create", CallingConvention = CallingConvention.Cdecl)] [DllImport(LibName, EntryPoint = "NDIlib_send_create", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr SendCreate(ref SendCreate p_create_settings); public static extern IntPtr SendCreate(ref SendCreateSettings p_create_settings);
[DllImport(LibName, EntryPoint = "NDIlib_send_destroy", CallingConvention = CallingConvention.Cdecl)] [DllImport(LibName, EntryPoint = "NDIlib_send_destroy", CallingConvention = CallingConvention.Cdecl)]
public static extern void SendDestroy(IntPtr p_instance); public static extern void SendDestroy(IntPtr p_instance);
@ -117,7 +117,7 @@ internal static class NdiNative
} }
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct RecvCreateV3 public struct RecvCreateV3Settings
{ {
public Source source_to_connect_to; public Source source_to_connect_to;
public RecvColorFormat color_format; public RecvColorFormat color_format;
@ -127,7 +127,7 @@ internal static class NdiNative
} }
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct SendCreate public struct SendCreateSettings
{ {
public IntPtr p_ndi_name; // const char* public IntPtr p_ndi_name; // const char*
public IntPtr p_groups; // const char* public IntPtr p_groups; // const char*