diff --git a/lib/cli/src/c_gen/staticlib_header.rs b/lib/cli/src/c_gen/staticlib_header.rs index bd203c644..96fe194fe 100644 --- a/lib/cli/src/c_gen/staticlib_header.rs +++ b/lib/cli/src/c_gen/staticlib_header.rs @@ -58,7 +58,7 @@ wasm_byte_vec_t generate_serialized_data() { return module_byte_vec; } -wasm_module_t* wasmer_static_module_new(wasm_store_t* store, const char* wasm_name) { +wasm_module_t* wasmer_object_module_new(wasm_store_t* store, const char* wasm_name) { // wasm_name intentionally unused for now: will be used in the future. wasm_byte_vec_t module_byte_vec = generate_serialized_data(); wasm_module_t* module = wasm_module_deserialize(store, &module_byte_vec); diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index d60bf704e..65f511581 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -915,7 +915,7 @@ impl CreateExe { c_code_to_instantiate.push_str(&format!( " - wasm_module_t *atom_{atom_name} = wasmer_static_module_new(store, \"{atom_name}\"); + wasm_module_t *atom_{atom_name} = wasmer_object_module_new(store, \"{atom_name}\"); if (!atom_{atom_name}) {{ fprintf(stderr, \"Failed to create module from atom \\\"{atom_name}\\\"\\n\"); diff --git a/lib/cli/src/commands/wasmer_create_exe.h b/lib/cli/src/commands/wasmer_create_exe.h index 98705d4fc..a94afd114 100644 --- a/lib/cli/src/commands/wasmer_create_exe.h +++ b/lib/cli/src/commands/wasmer_create_exe.h @@ -10,7 +10,7 @@ extern "C" { extern size_t WASMER_MODULE_LENGTH asm("WASMER_MODULE_LENGTH"); extern char WASMER_MODULE_DATA asm("WASMER_MODULE_DATA"); -wasm_module_t* wasmer_module_new(wasm_store_t* store, const char* wasm_name) { +wasm_module_t* wasmer_object_module_new(wasm_store_t* store, const char* wasm_name) { wasm_byte_vec_t module_byte_vec = { .size = WASMER_MODULE_LENGTH, .data = (const char*)&WASMER_MODULE_DATA, diff --git a/lib/cli/src/commands/wasmer_deserialize_module.h b/lib/cli/src/commands/wasmer_deserialize_module.h index 98705d4fc..a94afd114 100644 --- a/lib/cli/src/commands/wasmer_deserialize_module.h +++ b/lib/cli/src/commands/wasmer_deserialize_module.h @@ -10,7 +10,7 @@ extern "C" { extern size_t WASMER_MODULE_LENGTH asm("WASMER_MODULE_LENGTH"); extern char WASMER_MODULE_DATA asm("WASMER_MODULE_DATA"); -wasm_module_t* wasmer_module_new(wasm_store_t* store, const char* wasm_name) { +wasm_module_t* wasmer_object_module_new(wasm_store_t* store, const char* wasm_name) { wasm_byte_vec_t module_byte_vec = { .size = WASMER_MODULE_LENGTH, .data = (const char*)&WASMER_MODULE_DATA, diff --git a/lib/cli/src/commands/wasmer_static_create_exe_main.c b/lib/cli/src/commands/wasmer_static_create_exe_main.c index 866051710..e2d21d8a5 100644 --- a/lib/cli/src/commands/wasmer_static_create_exe_main.c +++ b/lib/cli/src/commands/wasmer_static_create_exe_main.c @@ -14,9 +14,7 @@ extern size_t VOLUMES_LENGTH asm("VOLUMES_LENGTH"); extern char VOLUMES_DATA asm("VOLUMES_DATA"); #endif -extern wasm_module_t* wasmer_module_new(wasm_store_t* store,const char* wasm_name) asm("wasmer_module_new"); -extern wasm_module_t* wasmer_static_module_new(wasm_store_t* store,const char* wasm_name) asm("wasmer_static_module_new"); - +extern wasm_module_t* wasmer_object_module_new(wasm_store_t* store,const char* wasm_name) asm("wasmer_object_module_new"); static void print_wasmer_error() { int error_len = wasmer_last_error_length(); @@ -102,7 +100,7 @@ int main(int argc, char *argv[]) { #ifdef WASI_PIRITA // INSTANTIATE_MODULES #else - wasm_module_t *module = wasmer_static_module_new(store, "module"); + wasm_module_t *module = wasmer_object_module_new(store, "module"); #endif if (!module) {