mirror of https://github.com/ppy/SDL3-CS.git
Fix duplicate `XEvent` struct definitions
This commit is contained in:
parent
2ccdcb04b3
commit
cef2e24326
|
|
@ -28,11 +28,6 @@ using System.Runtime.Versioning;
|
||||||
|
|
||||||
namespace SDL
|
namespace SDL
|
||||||
{
|
{
|
||||||
[StructLayout(LayoutKind.Explicit)]
|
|
||||||
public partial struct _XEvent
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public static unsafe partial class SDL3
|
public static unsafe partial class SDL3
|
||||||
{
|
{
|
||||||
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||||
|
|
|
||||||
|
|
@ -28,11 +28,6 @@ using System.Runtime.Versioning;
|
||||||
|
|
||||||
namespace SDL
|
namespace SDL
|
||||||
{
|
{
|
||||||
[StructLayout(LayoutKind.Explicit)]
|
|
||||||
public partial struct _XEvent
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum SDL_WinRT_Path
|
public enum SDL_WinRT_Path
|
||||||
{
|
{
|
||||||
SDL_WINRT_PATH_INSTALLED_LOCATION,
|
SDL_WINRT_PATH_INSTALLED_LOCATION,
|
||||||
|
|
|
||||||
|
|
@ -32,11 +32,6 @@ namespace SDL
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
[StructLayout(LayoutKind.Explicit)]
|
|
||||||
public partial struct _XEvent
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public partial struct XTaskQueueObject
|
public partial struct XTaskQueueObject
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,19 +23,15 @@
|
||||||
3. This notice may not be removed or altered from any source distribution.
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace SDL
|
namespace SDL
|
||||||
{
|
{
|
||||||
[StructLayout(LayoutKind.Explicit)]
|
|
||||||
public partial struct _XEvent
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public static unsafe partial class SDL3
|
public static unsafe partial class SDL3
|
||||||
{
|
{
|
||||||
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||||
public static extern void SDL_SetX11EventHook([NativeTypeName("SDL_X11EventHook")] delegate* unmanaged[Cdecl]<void*, _XEvent*, int> callback, void* userdata);
|
public static extern void SDL_SetX11EventHook([NativeTypeName("SDL_X11EventHook")] delegate* unmanaged[Cdecl]<void*, IntPtr, int> callback, void* userdata);
|
||||||
|
|
||||||
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||||
[return: NativeTypeName("SDL_bool")]
|
[return: NativeTypeName("SDL_bool")]
|
||||||
|
|
|
||||||
|
|
@ -28,11 +28,6 @@ using System.Runtime.Versioning;
|
||||||
|
|
||||||
namespace SDL
|
namespace SDL
|
||||||
{
|
{
|
||||||
[StructLayout(LayoutKind.Explicit)]
|
|
||||||
public partial struct _XEvent
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public static unsafe partial class SDL3
|
public static unsafe partial class SDL3
|
||||||
{
|
{
|
||||||
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
|
# See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
# Exclude struct forward declaration
|
||||||
|
--exclude
|
||||||
|
_XEvent
|
||||||
|
|
||||||
|
# Remap removed struct pointer to generic pointer
|
||||||
|
--remap
|
||||||
|
_XEvent*=IntPtr
|
||||||
Loading…
Reference in New Issue