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
Some checks failed
CI / build-and-test (push) Failing after 26s
This commit is contained in:
parent
6f09ca35ef
commit
90b0951a42
1 changed files with 4 additions and 4 deletions
|
|
@ -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*
|
||||
|
|
|
|||
Loading…
Reference in a new issue