wasmedge_sys::ffi

Function WasmEdge_StoreFindModule

Source
pub unsafe extern "C" fn WasmEdge_StoreFindModule(
    Cxt: *const WasmEdge_StoreContext,
    Name: WasmEdge_String,
) -> *const WasmEdge_ModuleInstanceContext
Expand description

Get the module instance context by the module name.

After registering a WASM module, developers can call this function to find and get the registered module instance context by the module name.

This function is thread-safe.

\param Cxt the WasmEdge_StoreContext. \param Name the module name WasmEdge_String.

\returns pointer to the module instance context. NULL if not found.