openmpt_module_set_log_func

Function openmpt_module_set_log_func 

Source
pub unsafe extern "C" fn openmpt_module_set_log_func(
    mod_: *mut openmpt_module,
    logfunc: openmpt_log_func,
    loguser: *mut c_void,
)
Expand description

\brief Set logging function.

Set the logging function of an already constructed openmpt_module. \param mod The module handle to work on. \param logfunc Logging function where warning and errors are written. The logging function may be called throughout the lifetime of openmpt_module. \param loguser User-defined data associated with this module. This value will be passed to the logging callback function (logfunc) \since 0.3.0