Function wasmedge_sys::ffi::WasmEdge_VMGetLoaderContext
source · pub unsafe extern "C" fn WasmEdge_VMGetLoaderContext(
Cxt: *mut WasmEdge_VMContext
) -> *mut WasmEdge_LoaderContext
Expand description
Get the loader context used in the WasmEdge_VMContext.
The returned loader context links to the loader 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_LoaderDelete
.
This function is thread-safe.
\param Cxt the WasmEdge_VMContext.
\returns pointer to the loader context.