C API: expose wasmtime_linker_get_one_by_name() (#1897)
* C API: expose wasmtime_linker_get_one_by_name() * C API: remove unnecessary 'unsafe' qualifiers * C API: avoid unnecessary mutable borrows of the Linker
This commit is contained in:
committed by
GitHub
parent
9751b96c5e
commit
8082aeaa5f
@@ -129,6 +129,13 @@ WASM_API_EXTERN own wasmtime_error_t* wasmtime_linker_get_default(
|
||||
own wasm_func_t **func
|
||||
);
|
||||
|
||||
WASM_API_EXTERN own wasmtime_error_t* wasmtime_linker_get_one_by_name(
|
||||
const wasmtime_linker_t *linker,
|
||||
const wasm_name_t *module,
|
||||
const wasm_name_t *name,
|
||||
own wasm_extern_t **item
|
||||
);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// wasmtime_caller_t extension, binding the `Caller` type in the Rust API
|
||||
|
||||
Reference in New Issue
Block a user