Updated logging functions for SDL3 naming convention

This commit is contained in:
Sam Lantinga 2024-05-16 10:00:50 -07:00
parent 241603b607
commit 4609af618a
74 changed files with 137 additions and 105 deletions

View file

@ -117,14 +117,14 @@ void SDL_InitLog(void)
void SDL_QuitLog(void)
{
SDL_LogResetPriorities();
SDL_ResetLogPriorities();
if (log_function_mutex) {
SDL_DestroyMutex(log_function_mutex);
log_function_mutex = NULL;
}
}
void SDL_LogSetAllPriority(SDL_LogPriority priority)
void SDL_SetLogPriorities(SDL_LogPriority priority)
{
SDL_LogLevel *entry;
@ -136,7 +136,7 @@ void SDL_LogSetAllPriority(SDL_LogPriority priority)
SDL_forced_priority_level = priority;
}
void SDL_LogSetPriority(int category, SDL_LogPriority priority)
void SDL_SetLogPriority(int category, SDL_LogPriority priority)
{
SDL_LogLevel *entry;
@ -273,7 +273,7 @@ static SDL_LogPriority SDL_GetDefaultLogPriority(int category)
}
}
SDL_LogPriority SDL_LogGetPriority(int category)
SDL_LogPriority SDL_GetLogPriority(int category)
{
SDL_LogLevel *entry;
@ -290,7 +290,7 @@ SDL_LogPriority SDL_LogGetPriority(int category)
return SDL_GetDefaultLogPriority(category);
}
void SDL_LogResetPriorities(void)
void SDL_ResetLogPriorities(void)
{
SDL_LogLevel *entry;
@ -406,7 +406,7 @@ void SDL_LogMessageV(int category, SDL_LogPriority priority, SDL_PRINTF_FORMAT_S
}
/* See if we want to do anything with this message */
if (priority < SDL_LogGetPriority(category)) {
if (priority < SDL_GetLogPriority(category)) {
return;
}