Skip to content

Commit

Permalink
feat(runtime) Update to latest version of wasmerio/wasmer#1030.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Dec 4, 2019
1 parent 2e2bedf commit a969675
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions wasmer/wasmer.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ enum Version {
/**
* Version cannot be detected or is unknown.
*/
Unknown,
Unknown = 0,
/**
* `wasi_unstable`.
*/
Snapshot0,
Snapshot0 = 1,
/**
* `wasi_snapshot_preview1`.
*/
Snapshot1,
Snapshot1 = 2,
};
typedef uint8_t Version;

Expand Down Expand Up @@ -907,12 +907,14 @@ wasmer_import_object_t *wasmer_wasi_generate_import_object(const wasmer_byte_arr
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(Version version,
wasmer_import_object_t *wasmer_wasi_generate_import_object_for_version(unsigned char version,
const wasmer_byte_array *args,
unsigned int args_len,
const wasmer_byte_array *envs,
Expand Down

0 comments on commit a969675

Please sign in to comment.