doc(runtime-c-api) Improve documentation of wasmer_wasi_generate_import_object_for_version.

This commit is contained in:
Ivan Enderlin
2019-12-04 14:38:54 +01:00
parent 0c5021484f
commit 90f3c894c1
3 changed files with 9 additions and 3 deletions

View File

@ -711,10 +711,12 @@ wasmer_import_object_t *wasmer_wasi_generate_import_object(const wasmer_byte_arr
const wasmer_wasi_map_dir_entry_t *mapped_dirs,
unsigned int mapped_dirs_len);
/// Creates a WASI import object.
/// Creates a WASI import object for a specific version.
///
/// This function is similar to `wasmer_wasi_generate_import_object`
/// except that the first argument describes the WASI version.
///
/// The version is expected to be of kind `Version`.
wasmer_import_object_t *wasmer_wasi_generate_import_object_for_version(unsigned char version,
const wasmer_byte_array *args,
unsigned int args_len,