Function wasmedge_sys::ffi::WasmEdge_ModuleInstanceFindGlobal
source · pub unsafe extern "C" fn WasmEdge_ModuleInstanceFindGlobal(
Cxt: *const WasmEdge_ModuleInstanceContext,
Name: WasmEdge_String
) -> *mut WasmEdge_GlobalInstanceContext
Expand description
Get the exported global instance context of a module instance.
The result global instance context links to the global instance in the
module instance context and owned by the module instance context, and the
caller should NOT call the WasmEdge_GlobalInstanceDelete
.
This function is thread-safe.
\param Cxt the WasmEdge_ModuleInstanceContext. \param Name the global name WasmEdge_String.
\returns pointer to the global instance context. NULL if not found.