From f64ce02cf6f59edefa85272d5c104197357b7c7c Mon Sep 17 00:00:00 2001 From: "irvingouj @ Devolutions" <139169536+irvingoujAtDevolution@users.noreply.github.com> Date: Fri, 3 May 2024 12:27:02 -0400 Subject: [PATCH] fix(ffi): include forgotten generated files (#456) --- .../Generated/ConfigBuilder.cs | 20 +++++++++++++++++++ .../Generated/RawConfigBuilder.cs | 3 +++ 2 files changed, 23 insertions(+) diff --git a/ffi/dotnet/Devolutions.IronRdp/Generated/ConfigBuilder.cs b/ffi/dotnet/Devolutions.IronRdp/Generated/ConfigBuilder.cs index 92a20977..c6d5b62a 100644 --- a/ffi/dotnet/Devolutions.IronRdp/Generated/ConfigBuilder.cs +++ b/ffi/dotnet/Devolutions.IronRdp/Generated/ConfigBuilder.cs @@ -103,6 +103,14 @@ public partial class ConfigBuilder: IDisposable } } + public uint KeyboardLayout + { + set + { + SetKeyboardLayout(value); + } + } + public uint KeyboardSubtype { set @@ -232,6 +240,18 @@ public partial class ConfigBuilder: IDisposable } } + public void SetKeyboardLayout(uint keyboardLayout) + { + unsafe + { + if (_inner == null) + { + throw new ObjectDisposedException("ConfigBuilder"); + } + Raw.ConfigBuilder.SetKeyboardLayout(_inner, keyboardLayout); + } + } + public void SetKeyboardType(KeyboardType keyboardType) { unsafe diff --git a/ffi/dotnet/Devolutions.IronRdp/Generated/RawConfigBuilder.cs b/ffi/dotnet/Devolutions.IronRdp/Generated/RawConfigBuilder.cs index e369260d..223654be 100644 --- a/ffi/dotnet/Devolutions.IronRdp/Generated/RawConfigBuilder.cs +++ b/ffi/dotnet/Devolutions.IronRdp/Generated/RawConfigBuilder.cs @@ -31,6 +31,9 @@ public partial struct ConfigBuilder [DllImport(NativeLib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ConfigBuilder_set_enable_credssp", ExactSpelling = true)] public static unsafe extern void SetEnableCredssp(ConfigBuilder* self, [MarshalAs(UnmanagedType.U1)] bool enableCredssp); + [DllImport(NativeLib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ConfigBuilder_set_keyboard_layout", ExactSpelling = true)] + public static unsafe extern void SetKeyboardLayout(ConfigBuilder* self, uint keyboardLayout); + [DllImport(NativeLib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ConfigBuilder_set_keyboard_type", ExactSpelling = true)] public static unsafe extern void SetKeyboardType(ConfigBuilder* self, KeyboardType keyboardType);