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:
Thibault Charbonnier
2020-06-23 12:23:49 -07:00
committed by GitHub
parent 9751b96c5e
commit 8082aeaa5f
3 changed files with 41 additions and 6 deletions

View File

@@ -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