Module wasmer_c_api::wasm_c_api::wasi[][src]

Unofficial API for WASI integrating with the standard Wasm C API.

This API will be superseded by a standard WASI API when/if such a standard is created.

Structs

wasi_config_t
wasi_env_t
wasm_named_extern_t

Non-standard type wrapping wasm_extern_t with the addition of two wasm_name_t respectively for the module name and the name of the extern (very likely to be an import). This non-standard type is used by the non-standard wasi_get_unordered_imports function.

wasm_named_extern_vec_t

Represents a vector of wasm_named_extern_t.

Enums

wasi_version_t

The version of WASI. This is determined by the imports namespace string.

Functions

wasi_config_arg
wasi_config_capture_stderr
wasi_config_capture_stdout
wasi_config_env
wasi_config_inherit_stderr
wasi_config_inherit_stdin
wasi_config_inherit_stdout
wasi_config_mapdir
wasi_config_new
wasi_config_preopen_dir
wasi_env_delete

Delete a wasi_env_t.

wasi_env_new

Create a new WASI environment.

wasi_env_read_stderr
wasi_env_read_stdout
wasi_env_set_instance

This function is deprecated. You may safely remove all calls to it and everything will continue to work.

wasi_env_set_memory

This function is deprecated. You may safely remove all calls to it and everything will continue to work.

wasi_get_imports

Non-standard function to get the imports needed for the WASI implementation ordered as expected by the wasm_module_t.

wasi_get_start_function
wasi_get_unordered_imports

Non-standard function to get the imports needed for the WASI implementation with no particular order. Each import has its associated module name and name, so that it can be re-order later based on the wasm_module_t requirements.

wasi_get_wasi_version
wasm_named_extern_module

Non-standard function to get the module name of a wasm_named_extern_t.

wasm_named_extern_name

Non-standard function to get the name of a wasm_named_extern_t.

wasm_named_extern_unwrap

Non-standard function to get the wrapped extern of a wasm_named_extern_t.

wasm_named_extern_vec_copy

Performs a deep copy of a vector of wasm_named_extern_t.

wasm_named_extern_vec_delete

Deletes a vector of wasm_named_extern_t.

wasm_named_extern_vec_new

Creates a new vector of wasm_named_extern_t.

wasm_named_extern_vec_new_empty

Creates an empty vector of wasm_named_extern_t.

wasm_named_extern_vec_new_uninitialized

Creates a new uninitialized vector of wasm_named_extern_t.