#[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,
) -> u64Expand description
Initiate an asynchronous plugin call.
§Status
Not yet implemented. This function is reserved for future async API support. Currently returns 0 to indicate the operation is not available.
§Planned Behavior
When implemented, this function will:
- Accept a request and completion callback
- Submit the request for async processing
- Return a non-zero request ID for tracking/cancellation
- Invoke the callback with the response when complete
§Safety
When implemented, the following invariants must hold:
handlemust be a valid handle fromplugin_init, or nulltype_tagmust be a valid null-terminated C string, or nullrequestmust be valid forrequest_lenbytes, or null ifrequest_lenis 0callbackmust remain valid until invoked or the request is cancelledcontextis passed through to the callback unchanged
§Returns
Request ID that can be used with plugin_cancel_async, or 0 if not implemented.