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

SDL_HintCallback - A callback used to send notifications of hint value changes.

Defined in SDL3/SDL_hints.h

#include "SDL3/SDL.h"
typedef void(SDLCALL *SDL_HintCallback)(void *userdata, const char *name, const char *oldValue, const char *newValue);

This is called an initial time during

SDL_AddHintCallback
with the hint's current value, and then again each time the hint's value changes.

what was passed as userdata to SDL_AddHintCallback ().
what was passed as name to SDL_AddHintCallback ().
the previous hint value.
the new value hint is to be set to.

This callback is fired from whatever thread is setting a new hint value. SDL holds a lock on the hint subsystem when calling this callback.

This datatype is available since SDL 3.2.0.

(3), SDL_AddHintCallback(3)

SDL 3.2.10 Simple Directmedia Layer