Skip to main content

plugin_call_raw

Function plugin_call_raw 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn plugin_call_raw( handle: *mut c_void, message_id: u32, request: *const c_void, request_size: usize, ) -> RbResponse
Expand description

Make a synchronous binary call to the plugin

§Parameters

  • handle: Plugin handle from plugin_init
  • message_id: Numeric message identifier
  • request: Pointer to request struct
  • request_size: Size of request struct (for validation)

§Returns

RbResponse containing the binary response (must be freed with rb_response_free)

§Safety

  • handle must be a valid handle from plugin_init
  • request must be valid for request_size bytes
  • The request struct must match the expected type for message_id