SDL Wiki
(This is the documentation for SDL3, which is the current stable version. SDL2 was the previous version!)

SDL_LogOutputFunction

The prototype for the log output callback function.

Header File

Defined in <SDL3/SDL_log.h>

Syntax

typedef void (SDLCALL *SDL_LogOutputFunction)(void *userdata, int category, SDL_LogPriority priority, const char *message);

Function Parameters

userdata what was passed as userdata to SDL_SetLogOutputFunction().
category the category of the message.
priority the priority of the message.
message the message being output.

Remarks

This function is called by SDL when there is new text to be logged. A mutex is held so that this function is never called by more than one thread at once.

Version

This datatype is available since SDL 3.1.3.


CategoryAPI, CategoryAPIDatatype, CategoryLog


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.