wasmedge_sys::ffi

Function WasmEdge_VMGetValidatorContext

Source
pub unsafe extern "C" fn WasmEdge_VMGetValidatorContext(
    Cxt: *mut WasmEdge_VMContext,
) -> *mut WasmEdge_ValidatorContext
Expand description

Get the validator context used in the WasmEdge_VMContext.

The returned validator context links to the validator in the VM context and owned by the VM context. This function will return NULL if error occurs. The caller should NOT call the WasmEdge_ValidatorDelete.

This function is thread-safe.

\param Cxt the WasmEdge_VMContext.

\returns pointer to the validator context.