LV2_Worker_Respond_Function

Type Alias LV2_Worker_Respond_Function 

Source
pub type LV2_Worker_Respond_Function = Option<unsafe extern "C" fn(handle: LV2_Worker_Respond_Handle, size: u32, data: *const c_void) -> LV2_Worker_Status>;
Expand description

A function to respond to run() from the worker method.

The data MUST be safe for the host to copy and later pass to work_response(), and the host MUST guarantee that it will be eventually passed to work_response() if this function returns LV2_WORKER_SUCCESS.

Aliased Type§

pub enum LV2_Worker_Respond_Function {
    None,
    Some(unsafe extern "C" fn(*mut c_void, u32, *const c_void) -> u32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, u32, *const c_void) -> u32)

Some value of type T.