aubio_log_function_t

Type Alias aubio_log_function_t 

Source
pub type aubio_log_function_t = Option<unsafe extern "C" fn(level: sint_t, message: *const char_t, data: *mut c_void)>;
Expand description

Logging function prototype, to be passed to ::aubio_log_set_function

\param level log level \param message text to log \param data optional closure used by the callback

See @ref utils/test-log.c for an example of logging function.

Aliased Type§

pub enum aubio_log_function_t {
    None,
    Some(unsafe extern "C" fn(i32, *const i8, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.