Skip to main content

StreamCallback

Type Alias StreamCallback 

Source
pub type StreamCallback = extern "C" fn(*const c_char, *mut c_void);
Expand description

The C stream callback type: receives one NUL-terminated UTF-8 line plus the opaque userdata context supplied at aacode_task_start. The userdata lets each host bind per-task state without thread-local or global hacks.