Skip to main content

DispatchFn

Type Alias DispatchFn 

Source
pub type DispatchFn = extern "C" fn(engine: *mut c_void, callback: extern "C" fn(*mut c_void), user_data: *mut c_void) -> bool;
Expand description

Function-pointer signature of the host-provided dispatcher. Matches the C ABI of whisker_bridge_dispatch after erasing the engine pointer type to *mut c_void (so this crate doesn’t depend on whisker-driver-sys).