From 90b0951a42fda0c5e0408a89b43ec340cae39032 Mon Sep 17 00:00:00 2001 From: Zac Gaetano Date: Thu, 7 May 2026 15:35:15 +0000 Subject: [PATCH] fix(interop): rename create-settings structs to avoid name collision with P/Invoke methods --- src/TeamsISO.Engine.NdiInterop/NdiNative.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/TeamsISO.Engine.NdiInterop/NdiNative.cs b/src/TeamsISO.Engine.NdiInterop/NdiNative.cs index 24f61d2..f4a47fd 100644 --- a/src/TeamsISO.Engine.NdiInterop/NdiNative.cs +++ b/src/TeamsISO.Engine.NdiInterop/NdiNative.cs @@ -34,7 +34,7 @@ internal static class NdiNative // ---- Receive ---- [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)] public static extern void RecvDestroy(IntPtr p_instance); @@ -52,7 +52,7 @@ internal static class NdiNative // ---- Send ---- [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)] public static extern void SendDestroy(IntPtr p_instance); @@ -117,7 +117,7 @@ internal static class NdiNative } [StructLayout(LayoutKind.Sequential)] - public struct RecvCreateV3 + public struct RecvCreateV3Settings { public Source source_to_connect_to; public RecvColorFormat color_format; @@ -127,7 +127,7 @@ internal static class NdiNative } [StructLayout(LayoutKind.Sequential)] - public struct SendCreate + public struct SendCreateSettings { public IntPtr p_ndi_name; // const char* public IntPtr p_groups; // const char*