[−][src]Function clingo_sys::clingo_control_register_observer
pub unsafe extern "C" fn clingo_control_register_observer(
control: *mut clingo_control_t,
observer: *const clingo_ground_program_observer_t,
replace: bool,
data: *mut c_void
) -> bool
Register a program observer with the control object.
@param[in] control the target @param[in] observer the observer to register @param[in] replace just pass the grounding to the observer but not the solver @param[in] data user data passed to the observer functions @return whether the call was successful