Function highs_sys::Highs_setCallback
source · pub unsafe extern "C" fn Highs_setCallback(
highs: *mut c_void,
user_callback: Option<unsafe extern "C" fn(arg1: c_int, arg2: *const c_char, arg3: *const HighsCallbackDataOut, arg4: *mut HighsCallbackDataIn, arg5: *mut c_void)>,
user_callback_data: *mut c_void
) -> HighsInt
Expand description
Set the callback method to use for HiGHS
@param highs A pointer to the Highs instance. @param user_callback A pointer to the user callback @param user_callback_data A pointer to the user callback data
@returns A kHighsStatus
constant indicating whether the call succeeded.