[][src]Function libudis86_sys::ud_set_input_hook

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

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.