sdl3-bindgen-sys
Safe HaskellNone
LanguageGHC2021

SDL3.Sys.Bindgen.Log.Unsafe

Synopsis

Documentation

sDL_SetLogPriorities Source #

Arguments

:: SDL_LogPriority
priority
the SDL_LogPriority to assign.
-> IO () 

Set the priority of all log categories.

Thread safety
It is safe to call this function from any thread.
See also
sDL_ResetLogPriorities, sDL_SetLogPriority
C declaration
SDL_SetLogPriorities, defined at SDL3/SDL_log.h 156:34

Since: 3.2.0

sDL_SetLogPriority Source #

Arguments

:: CInt
category
the category to assign a priority to.
-> SDL_LogPriority
priority
the SDL_LogPriority to assign.
-> IO () 

Set the priority of a particular log category.

Thread safety
It is safe to call this function from any thread.
See also
sDL_GetLogPriority, sDL_ResetLogPriorities, sDL_SetLogPriorities
C declaration
SDL_SetLogPriority, defined at SDL3/SDL_log.h 172:34

Since: 3.2.0

sDL_GetLogPriority Source #

Arguments

:: CInt
category
the category to query.
-> IO SDL_LogPriority 

Get the priority of a particular log category.

Returns
the SDL_LogPriority for the requested category.
Thread safety
It is safe to call this function from any thread.
See also
sDL_SetLogPriority
C declaration
SDL_GetLogPriority, defined at SDL3/SDL_log.h 186:45

Since: 3.2.0

sDL_ResetLogPriorities :: IO () Source #

Reset all priorities to default.

This is called by SDL_Quit().

Thread safety
It is safe to call this function from any thread.
See also
sDL_SetLogPriorities, sDL_SetLogPriority
C declaration
SDL_ResetLogPriorities, defined at SDL3/SDL_log.h 200:34

Since: 3.2.0

sDL_SetLogPriorityPrefix Source #

Arguments

:: SDL_LogPriority
priority
the SDL_LogPriority to modify.
-> PtrConst CChar
prefix
the prefix to use for that log priority, or NULL to use no prefix.
-> IO CBool 

Set the text prepended to log messages of a given priority.

By default SDL_LOG_PRIORITY_INFO and below have no prefix, and SDL_LOG_PRIORITY_WARN and higher have a prefix showing their priority, e.g. "WARNING: ".

This function makes a copy of its string argument, prefix, so it is not necessary to keep the value of prefix alive after the call returns.

Returns
true on success or false on failure; call SDL_GetError() for more information.
Thread safety
It is safe to call this function from any thread.
See also
sDL_SetLogPriorities, sDL_SetLogPriority
C declaration
SDL_SetLogPriorityPrefix, defined at SDL3/SDL_log.h 225:34

Since: 3.2.0

sDL_GetDefaultLogOutputFunction :: IO SDL_LogOutputFunction Source #

Get the default log output function.

Returns
the default log output callback. It should be called with NULL for the userdata argument.
Thread safety
It is safe to call this function from any thread.
See also
sDL_SetLogOutputFunction, sDL_GetLogOutputFunction
C declaration
SDL_GetDefaultLogOutputFunction, defined at SDL3/SDL_log.h 500:51

Since: 3.2.0

sDL_GetLogOutputFunction Source #

Arguments

:: Ptr SDL_LogOutputFunction
callback
an SDL_LogOutputFunction filled in with the current log callback.
-> Ptr (Ptr Void)
userdata
a pointer filled in with the pointer that is passed to callback.
-> IO () 

Get the current log output function.

Thread safety
It is safe to call this function from any thread.
See also
sDL_GetDefaultLogOutputFunction, sDL_SetLogOutputFunction
C declaration
SDL_GetLogOutputFunction, defined at SDL3/SDL_log.h 517:34

Since: 3.2.0

sDL_SetLogOutputFunction Source #

Arguments

:: SDL_LogOutputFunction
callback
an SDL_LogOutputFunction to call instead of the default.
-> Ptr Void
userdata
a pointer that is passed to callback.
-> IO () 

Replace the default log output function with one of your own.

Thread safety
It is safe to call this function from any thread.
See also
sDL_GetDefaultLogOutputFunction, sDL_GetLogOutputFunction
C declaration
SDL_SetLogOutputFunction, defined at SDL3/SDL_log.h 532:34

Since: 3.2.0