chore(runtime-c-api) Regenerate the wasmer.hh? files.

This commit is contained in:
Ivan Enderlin 2019-03-15 11:55:30 +01:00
parent c8872f1a6f
commit 2368ce3a20
2 changed files with 40 additions and 0 deletions

View File

@ -488,6 +488,16 @@ uint32_t wasmer_memory_length(const wasmer_memory_t *memory);
*/
wasmer_result_t wasmer_memory_new(wasmer_memory_t **memory, wasmer_limits_t limits);
/**
* Deserialize the given Module.
* Returns `wasmer_result_t::WASMER_OK` upon success.
* Returns `wasmer_result_t::WASMER_ERROR` upon failure. Use `wasmer_last_error_length`
* and `wasmer_last_error_message` to get an error message.
*/
wasmer_result_t wasmer_module_deserialize(wasmer_module_t **module,
const uint8_t *serialized_module_bytes,
uint32_t serialized_module_bytes_len);
/**
* Frees memory for the given Module
*/
@ -504,6 +514,18 @@ wasmer_result_t wasmer_module_instantiate(const wasmer_module_t *module,
wasmer_import_t *imports,
int imports_len);
/**
* Serialize the given Module.
* It's up to the caller to free the memory of the
* `serialized_module` byte array (both the `bytes` field and the
* structure).
* Returns `wasmer_result_t::WASMER_OK` upon success.
* Returns `wasmer_result_t::WASMER_ERROR` upon failure. Use `wasmer_last_error_length`
* and `wasmer_last_error_message` to get an error message.
*/
wasmer_result_t wasmer_module_serialize(wasmer_byte_array **serialized_module,
const wasmer_module_t *module);
/**
* Frees memory for the given Table
*/

View File

@ -385,6 +385,14 @@ uint32_t wasmer_memory_length(const wasmer_memory_t *memory);
/// and `wasmer_last_error_message` to get an error message.
wasmer_result_t wasmer_memory_new(wasmer_memory_t **memory, wasmer_limits_t limits);
/// Deserialize the given Module.
/// Returns `wasmer_result_t::WASMER_OK` upon success.
/// Returns `wasmer_result_t::WASMER_ERROR` upon failure. Use `wasmer_last_error_length`
/// and `wasmer_last_error_message` to get an error message.
wasmer_result_t wasmer_module_deserialize(wasmer_module_t **module,
const uint8_t *serialized_module_bytes,
uint32_t serialized_module_bytes_len);
/// Frees memory for the given Module
void wasmer_module_destroy(wasmer_module_t *module);
@ -397,6 +405,16 @@ wasmer_result_t wasmer_module_instantiate(const wasmer_module_t *module,
wasmer_import_t *imports,
int imports_len);
/// Serialize the given Module.
/// It's up to the caller to free the memory of the
/// `serialized_module` byte array (both the `bytes` field and the
/// structure).
/// Returns `wasmer_result_t::WASMER_OK` upon success.
/// Returns `wasmer_result_t::WASMER_ERROR` upon failure. Use `wasmer_last_error_length`
/// and `wasmer_last_error_message` to get an error message.
wasmer_result_t wasmer_module_serialize(wasmer_byte_array **serialized_module,
const wasmer_module_t *module);
/// Frees memory for the given Table
void wasmer_table_destroy(wasmer_table_t *table);