| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
SDL3.Sys.Bindgen.Log.Unsafe
Synopsis
- sDL_SetLogPriorities :: SDL_LogPriority -> IO ()
- sDL_SetLogPriority :: CInt -> SDL_LogPriority -> IO ()
- sDL_GetLogPriority :: CInt -> IO SDL_LogPriority
- sDL_ResetLogPriorities :: IO ()
- sDL_SetLogPriorityPrefix :: SDL_LogPriority -> PtrConst CChar -> IO CBool
- sDL_GetDefaultLogOutputFunction :: IO SDL_LogOutputFunction
- sDL_GetLogOutputFunction :: Ptr SDL_LogOutputFunction -> Ptr (Ptr Void) -> IO ()
- sDL_SetLogOutputFunction :: SDL_LogOutputFunction -> Ptr Void -> IO ()
Documentation
Arguments
| :: SDL_LogPriority |
|
| -> 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 atSDL3/SDL_log.h 156:34
Since: 3.2.0
Arguments
| :: CInt |
|
| -> SDL_LogPriority |
|
| -> 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 atSDL3/SDL_log.h 172:34
Since: 3.2.0
Arguments
| :: CInt |
|
| -> IO SDL_LogPriority |
Get the priority of a particular log category.
- Returns
- the
SDL_LogPriorityfor the requested category. - Thread safety
- It is safe to call this function from any thread.
- See also
sDL_SetLogPriority- C declaration
SDL_GetLogPriority, defined atSDL3/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 atSDL3/SDL_log.h 200:34
Since: 3.2.0
sDL_SetLogPriorityPrefix Source #
Arguments
| :: SDL_LogPriority |
|
| -> PtrConst CChar |
|
| -> 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 atSDL3/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 atSDL3/SDL_log.h 500:51
Since: 3.2.0
sDL_GetLogOutputFunction Source #
Arguments
| :: Ptr SDL_LogOutputFunction |
|
| -> Ptr (Ptr Void) |
|
| -> 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 atSDL3/SDL_log.h 517:34
Since: 3.2.0
sDL_SetLogOutputFunction Source #
Arguments
| :: SDL_LogOutputFunction |
|
| -> Ptr Void |
|
| -> 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 atSDL3/SDL_log.h 532:34
Since: 3.2.0