Type Alias sdl2_sys::SDL_LogOutputFunction

source ·
pub type SDL_LogOutputFunction = Option<unsafe extern "C" fn(userdata: *mut c_void, category: c_int, priority: SDL_LogPriority, message: *const c_char)>;
Expand description

The prototype for the log output callback function.

This function is called by SDL when there is new text to be logged.

\param userdata what was passed as userdata to SDL_LogSetOutputFunction() \param category the category of the message \param priority the priority of the message \param message the message being output

Aliased Type§

enum SDL_LogOutputFunction {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: i32, _: SDL_LogPriority, _: *const i8)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: i32, _: SDL_LogPriority, _: *const i8))

Some value of type T.