From: Malcolm Still Date: Fri, 6 Jan 2017 15:06:10 +0000 (+0000) Subject: libinput v0.4 removed libinput_udev_create_for_seat and replaced with two functions... X-Git-Tag: v3.0.0~100^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17a7464793f8dbe0f040b1b3e1fb9111d85de8bd;p=platform%2Fcore%2Fcsapi%2Fopentk.git libinput v0.4 removed libinput_udev_create_for_seat and replaced with two functions libinput_udev_create_context and libinput_udev_assign_seat to separately create a context and assign it a seat name. --- diff --git a/src/OpenTK/Platform/Linux/Bindings/LibInput.cs b/src/OpenTK/Platform/Linux/Bindings/LibInput.cs index 8dd2b69..7991125 100644 --- a/src/OpenTK/Platform/Linux/Bindings/LibInput.cs +++ b/src/OpenTK/Platform/Linux/Bindings/LibInput.cs @@ -45,9 +45,12 @@ namespace OpenTK.Platform.Linux { internal const string lib = "libinput"; - [DllImport(lib, EntryPoint = "libinput_udev_create_for_seat", CallingConvention = CallingConvention.Cdecl)] + [DllImport(lib, EntryPoint = "libinput_udev_create_context", CallingConvention = CallingConvention.Cdecl)] public static extern IntPtr CreateContext(InputInterface @interface, - IntPtr user_data, IntPtr udev, string seat_id); + IntPtr user_data, IntPtr udev); + + [DllImport(lib, EntryPoint = "libinput_udev_assign_seat", CallingConvention = CallingConvention.Cdecl)] + public static extern int AssignSeat(IntPtr @libinput, string seat_id); [DllImport(lib, EntryPoint = "libinput_destroy", CallingConvention = CallingConvention.Cdecl)] public static extern void DestroyContext(IntPtr libinput);