pub type openmpt_error_func = Option<unsafe extern "C" fn(error: c_int, user: *mut c_void) -> c_int>;
Expand description

\brief Error function

\param error Error code. \param user User context that was passed to openmpt_module_create2(), openmpt_module_create_from_memory2() or openmpt_could_open_probability2(). \return Mask of OPENMPT_ERROR_FUNC_RESULT_LOG and OPENMPT_ERROR_FUNC_RESULT_STORE. \retval OPENMPT_ERROR_FUNC_RESULT_NONE Do not log or store the error. \retval OPENMPT_ERROR_FUNC_RESULT_LOG Log the error. \retval OPENMPT_ERROR_FUNC_RESULT_STORE Store the error. \retval OPENMPT_ERROR_FUNC_RESULT_DEFAULT Log and store the error. \sa OPENMPT_ERROR_FUNC_RESULT_NONE \sa OPENMPT_ERROR_FUNC_RESULT_LOG \sa OPENMPT_ERROR_FUNC_RESULT_STORE \sa OPENMPT_ERROR_FUNC_RESULT_DEFAULT \sa openmpt_error_func_default \sa openmpt_error_func_log \sa openmpt_error_func_store \sa openmpt_error_func_ignore \sa openmpt_error_func_errno \since 0.3.0