Skip to main content

plugin_call

Function plugin_call 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn plugin_call( handle: *mut c_void, type_tag: *const c_char, request: *const u8, request_len: usize, ) -> FfiBuffer
Expand description

Make a synchronous call to the plugin

§Parameters

  • handle: Plugin handle from plugin_init
  • type_tag: Message type identifier (null-terminated C string)
  • request: Request payload bytes
  • request_len: Length of request payload

§Returns

FfiBuffer containing the response (must be freed with plugin_free_buffer)

§Safety

  • handle must be a valid handle from plugin_init
  • type_tag must be a valid null-terminated C string
  • request must be valid for request_len bytes