wasmedge_sys::ffi

Function WasmEdge_ModuleInstanceFindTag

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

Get the exported tag instance context of a module instance.

The result tag instance context links to the tag instance in the module instance context and owned by the module instance context.

This function is thread-safe.

\param Cxt the WasmEdge_ModuleInstanceContext. \param Name the tag name WasmEdge_String.

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