Skip to main content

WasmEdge_VMGetValidatorContext

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 is owned by the VM context. This function will return NULL if an 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.