Skip to main content

extension_manager_execute_job

Function extension_manager_execute_job 

Source
#[unsafe(no_mangle)]
pub extern "C" fn extension_manager_execute_job( manager: *mut ExtensionManager, job: *const CExtensionJob, ) -> CExtensionResult
Expand description

Execute an extension job submitted over the C ABI.

Marshals the CExtensionJob (UTF-8 fields + JSON parameters) into an ExtensionJob, runs it on the shared runtime, and returns the JSON-serialised ExtensionResult (on success) or an error message. The returned buffers are heap-owned and must be released with extension_result_free.

ยงSafety

manager must be a pointer returned by extension_manager_new (and not yet freed); job must point to a valid CExtensionJob whose byte ranges are valid for the duration of the call. Must not be called from within an existing Tokio runtime on the same thread.