mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-01-11 07:25:35 +00:00
SDL_Log[Get|Set]OutputFunction
This commit is contained in:
parent
9339b5514c
commit
2377195ecc
22
src/SDL2.cs
22
src/SDL2.cs
|
@ -250,6 +250,13 @@ namespace SDL2
|
||||||
SDL_NUM_LOG_PRIORITIES
|
SDL_NUM_LOG_PRIORITIES
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public delegate void SDL_LogOutputFunction(
|
||||||
|
IntPtr userdata, // void*
|
||||||
|
int category,
|
||||||
|
SDL_LogPriority priority,
|
||||||
|
IntPtr message // const char*
|
||||||
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern void SDL_Log(
|
public static extern void SDL_Log(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
||||||
|
@ -342,8 +349,19 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern void SDL_LogResetPriorities();
|
public static extern void SDL_LogResetPriorities();
|
||||||
|
|
||||||
// TODO: SDL_LogGetOutputFunction
|
/* userdata refers to a void* */
|
||||||
// TODO: SDL_LogSetOutputFunction
|
[DllImport(nativeLibName)]
|
||||||
|
public static extern void SDL_LogGetOutputFunction(
|
||||||
|
ref SDL_LogOutputFunction callback,
|
||||||
|
ref IntPtr userdata
|
||||||
|
);
|
||||||
|
|
||||||
|
/* userdata refers to a void* */
|
||||||
|
[DllImport(nativeLibName)]
|
||||||
|
public static extern void SDL_LogSetOutputFunction(
|
||||||
|
SDL_LogOutputFunction callback,
|
||||||
|
IntPtr userdata
|
||||||
|
);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue