Function
liq_attr_set_progress_callback
(attr: &mut liq_attr, callback: liq_progress_callback_function, user_info: AnySyncSendPtr)
Source from the content-addressed store, hash-verified
| 177 | #[no_mangle] |
| 178 | #[inline(never)] |
| 179 | pub unsafe extern "C" fn liq_attr_set_progress_callback(attr: &mut liq_attr, callback: liq_progress_callback_function, user_info: AnySyncSendPtr) { |
| 180 | if bad_object!(attr, LIQ_ATTR_MAGIC) { return; } |
| 181 | let cb = move |f| if callback(f, user_info) == 0 { ControlFlow::Break} else { ControlFlow::Continue}; |
| 182 | attr.inner.set_progress_callback(cb); |
| 183 | } |
| 184 | |
| 185 | #[no_mangle] |
| 186 | #[inline(never)] |