sdl3-bindgen-sys
Safe HaskellNone
LanguageGHC2021

SDL3.Sys.Bindgen.Log.FunPtr

Synopsis

Documentation

sDL_SetLogPriorities :: FunPtr (SDL_LogPriority -> IO ()) Source #

Set the priority of all log categories.

priority
the SDL_LogPriority to assign.
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 :: FunPtr (CInt -> SDL_LogPriority -> IO ()) Source #

Set the priority of a particular log category.

category
the category to assign a priority to.
priority
the SDL_LogPriority to assign.
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 :: FunPtr (CInt -> IO SDL_LogPriority) Source #

Get the priority of a particular log category.

category
the category to query.
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 :: FunPtr (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 :: FunPtr (SDL_LogPriority -> PtrConst CChar -> IO CBool) Source #

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.

priority
the SDL_LogPriority to modify.
prefix
the prefix to use for that log priority, or NULL to use no prefix.
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 :: FunPtr (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 :: FunPtr (Ptr SDL_LogOutputFunction -> Ptr (Ptr Void) -> IO ()) Source #

Get the current log output function.

callback
an SDL_LogOutputFunction filled in with the current log callback.
userdata
a pointer filled in with the pointer that is passed to callback.
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 :: FunPtr (SDL_LogOutputFunction -> Ptr Void -> IO ()) Source #

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

callback
an SDL_LogOutputFunction to call instead of the default.
userdata
a pointer that is passed to callback.
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