Skip to main content

RuntimeActionFn

Type Alias RuntimeActionFn 

Source
pub type RuntimeActionFn = extern "C" fn(action_id: u32, args_json: StbStringRef, out: *mut StbString, user_data: *mut c_void) -> i32;
Expand description

Runtime-action signature: runtime_action(action_id, args_json, out, user_data) -> i32. args_json is a borrowed input (StbStringRef); out is an owning output (StbString) the host produces and the plugin frees via the host’s free_string. action_id is deliberately a raw u32, not a Rust enum: an unknown value must be rejected as a normal protocol error rather than materializing an invalid enum discriminant. Returns 0 on success, nonzero on error.