DOKK / manpages / debian 13 / libsdl3-doc / SDL_AppQuit_func.3type.en
SDL_AppQuit_func(3type) SDL3 DATATYPES SDL_AppQuit_func(3type)

SDL_AppQuit_func - Function pointer typedef for SDL_AppQuit .

Defined in SDL3/SDL_init.h

#include "SDL3/SDL.h"
typedef void (SDLCALL *SDL_AppQuit_func)(void *appstate, SDL_AppResult result);

These are used by SDL_EnterAppMainCallbacks . This mechanism operates behind the scenes for apps using the optional main callbacks. Apps that want to use this should just implement

SDL_AppEvent
directly.

an optional pointer, provided by the app in SDL_AppInit .
the result code that terminated the app (success or failure).

This datatype is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer