wasm-micro-runtime/core/iwasm/include
YAMAMOTO Takashi 5d48cfdbc0
introduce wasm_runtime_instantiate_ex2 (#4444)
* introduce wasm_runtime_instantiate_ex2

at this point, just a slightly inefficiant functionality
equivalent of wasm_runtime_instantiate_ex.
however, unlike wasm_runtime_instantiate_ex, this one is designed
to be extendable without breaking the user-visible ABI.
because the definition of InstantiationArgs2 is not exposed to
users, we can safely add new members to it.

this commit also makes wasm_runtime_instantiate_ex a wrapper
of wasm_runtime_instantiate_ex2.

if this goes well, maybe it's a good idea to apply a similar
pattern to RuntimeInitArgs, LoadArgs, SharedHeapInitArgs, etc.
i started with InstantiationArgs just because i happen to have
a need to extend it for wasi-nn.

cf.
https://github.com/bytecodealliance/wasm-micro-runtime/issues/4364
https://github.com/bytecodealliance/wasm-micro-runtime/issues/4331

* product-mini/platforms/posix: use wasm_runtime_instantiate_ex2
2025-07-14 13:06:23 +08:00
..
aot_comp_option.h Support extended constant expressions (#4432) 2025-07-07 13:34:02 +08:00
aot_export.h appease a few compiler warnings (-Wstrict-prototypes) (#4465) 2025-07-10 08:28:00 +08:00
gc_export.h Add WASM_V128 in wasm_valkind_enum (#3412) 2024-05-14 10:22:42 +08:00
lib_export.h Add necessary comments for doxygen (#3299) 2024-04-11 07:50:08 +08:00
wasm_c_api.h Add a conditional check for the macro __STDC_VERSION__ (#4080) 2025-02-14 16:13:15 +08:00
wasm_export.h introduce wasm_runtime_instantiate_ex2 (#4444) 2025-07-14 13:06:23 +08:00