mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
Mark calling convention on GInterface callbacks
Fixes #583901. Adapted from fix for 2.12 from Markus Henschel. * glib/GInterfaceAdapter.cs: add UnmanagedFunctionPointer attrs
This commit is contained in:
parent
1a0ecbb111
commit
51d5faf651
@ -24,8 +24,10 @@ namespace GLib {
|
|||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||||
public delegate void GInterfaceInitHandler (IntPtr iface_ptr, IntPtr data);
|
public delegate void GInterfaceInitHandler (IntPtr iface_ptr, IntPtr data);
|
||||||
|
|
||||||
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||||
internal delegate void GInterfaceFinalizeHandler (IntPtr iface_ptr, IntPtr data);
|
internal delegate void GInterfaceFinalizeHandler (IntPtr iface_ptr, IntPtr data);
|
||||||
|
|
||||||
internal struct GInterfaceInfo {
|
internal struct GInterfaceInfo {
|
||||||
|
Loading…
Reference in New Issue
Block a user