SDL_GetEventFilter man page
SDL_GetEventFilter — Retrieves a pointer to he event filter
This function retrieces a pointer to the event filter that was previously set using SDL_SetEventFilter. An SDL_EventFilter function is defined as:
typedef int (*SDL_EventFilter)(const SDL_Event *event);
Returns a pointer to the event filter or NULL if no filter has been set.