Added SDL_GetDefaultLogOutputFunction()

Fixes https://github.com/libsdl-org/SDL/issues/10603
Closes https://github.com/libsdl-org/SDL/pull/11106
This commit is contained in:
Sam Lantinga
2024-10-13 12:01:45 -07:00
parent b766c824bd
commit a8ca024495
5 changed files with 24 additions and 0 deletions

View File

@@ -772,6 +772,11 @@ static void SDLCALL SDL_LogOutput(void *userdata, int category, SDL_LogPriority
#endif
}
SDL_LogOutputFunction SDL_GetDefaultLogOutputFunction(void)
{
return SDL_LogOutput;
}
void SDL_GetLogOutputFunction(SDL_LogOutputFunction *callback, void **userdata)
{
SDL_LockMutex(SDL_log_function_lock);