Function ud_set_input_hook

Source
pub unsafe extern "C" fn ud_set_input_hook(
    ud: *mut ud,
    callback: Option<unsafe extern "C" fn(ud: *mut ud) -> c_int>,
)
Expand description

Sets a pointer to a function, to callback for input. The callback is invoked each time libudis86 needs the next byte in the input stream. To single end-of-input, this callback must return the constant UD_EOI.