mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-27 07:31:33 +00:00
Change pointer that's not modified to be const in C API
This commit is contained in:
@ -10,6 +10,7 @@ Blocks of changes will separated by version increments.
|
|||||||
|
|
||||||
Special thanks to @jdanford for their contributions!
|
Special thanks to @jdanford for their contributions!
|
||||||
|
|
||||||
|
- [#856](https://github.com/wasmerio/wasmer/pull/856) Expose methods in the runtime C API to get a WASI import object
|
||||||
- [#850](https://github.com/wasmerio/wasmer/pull/850) New `WasiStateBuilder` API. small, add misc. breaking changes to existing API (for example, changing the preopen dirs arg on `wasi::generate_import_object` from `Vec<String>` to `Vec<Pathbuf>`)
|
- [#850](https://github.com/wasmerio/wasmer/pull/850) New `WasiStateBuilder` API. small, add misc. breaking changes to existing API (for example, changing the preopen dirs arg on `wasi::generate_import_object` from `Vec<String>` to `Vec<Pathbuf>`)
|
||||||
- [#852](https://github.com/wasmerio/wasmer/pull/852) Make minor grammar/capitalization fixes to README.md
|
- [#852](https://github.com/wasmerio/wasmer/pull/852) Make minor grammar/capitalization fixes to README.md
|
||||||
- [#841](https://github.com/wasmerio/wasmer/pull/841) Slightly improve rustdoc documentation and small updates to outdated info in readme files
|
- [#841](https://github.com/wasmerio/wasmer/pull/841) Slightly improve rustdoc documentation and small updates to outdated info in readme files
|
||||||
|
@ -276,7 +276,7 @@ pub unsafe extern "C" fn wasmer_import_object_get_import(
|
|||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn wasmer_import_object_extend(
|
pub unsafe extern "C" fn wasmer_import_object_extend(
|
||||||
import_object: *mut wasmer_import_object_t,
|
import_object: *mut wasmer_import_object_t,
|
||||||
imports: *mut wasmer_import_t,
|
imports: *const wasmer_import_t,
|
||||||
imports_len: c_uint,
|
imports_len: c_uint,
|
||||||
) -> wasmer_result_t {
|
) -> wasmer_result_t {
|
||||||
let import_object: &mut ImportObject = &mut *(import_object as *mut ImportObject);
|
let import_object: &mut ImportObject = &mut *(import_object as *mut ImportObject);
|
||||||
|
@ -466,7 +466,7 @@ void wasmer_import_object_destroy(wasmer_import_object_t *import_object);
|
|||||||
* Extends an existing import object with new imports
|
* Extends an existing import object with new imports
|
||||||
*/
|
*/
|
||||||
wasmer_result_t wasmer_import_object_extend(wasmer_import_object_t *import_object,
|
wasmer_result_t wasmer_import_object_extend(wasmer_import_object_t *import_object,
|
||||||
wasmer_import_t *imports,
|
const wasmer_import_t *imports,
|
||||||
unsigned int imports_len);
|
unsigned int imports_len);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -368,7 +368,7 @@ void wasmer_import_object_destroy(wasmer_import_object_t *import_object);
|
|||||||
|
|
||||||
/// Extends an existing import object with new imports
|
/// Extends an existing import object with new imports
|
||||||
wasmer_result_t wasmer_import_object_extend(wasmer_import_object_t *import_object,
|
wasmer_result_t wasmer_import_object_extend(wasmer_import_object_t *import_object,
|
||||||
wasmer_import_t *imports,
|
const wasmer_import_t *imports,
|
||||||
unsigned int imports_len);
|
unsigned int imports_len);
|
||||||
|
|
||||||
/// Gets an entry from an ImportObject at the name and namespace.
|
/// Gets an entry from an ImportObject at the name and namespace.
|
||||||
|
Reference in New Issue
Block a user