Skip to main content

plugin_call_async

Function plugin_call_async 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn plugin_call_async( _handle: *mut c_void, _type_tag: *const c_char, _request: *const u8, _request_len: usize, _callback: extern "C" fn(context: *mut c_void, request_id: u64, data: *const u8, len: usize, error_code: u32), _context: *mut c_void, ) -> u64
Expand description

Make an async call to the plugin (placeholder for future implementation)

§Safety

  • handle must be a valid handle from plugin_init, or null
  • type_tag must be a valid null-terminated C string, or null
  • request must be valid for request_len bytes, or null if request_len is 0
  • callback will be invoked when the request completes
  • context is passed through to the callback

§Returns

Request ID that can be used with plugin_cancel_async, or 0 if not implemented