Add apis to get package version (#3601)

Add three APIs:
- wasm_runtime_get_file_package_version
- wasm_runtime_get_module_package_version
- wasm_runtime_get_current_package_version
This commit is contained in:
Benbuck Nason
2024-07-15 17:15:59 -07:00
committed by GitHub
parent 7affac0ed3
commit 501d7d5adf
6 changed files with 102 additions and 5 deletions

View File

@ -836,6 +836,9 @@ struct WASMModule {
AOTModule structure. */
uint32 module_type;
/* the package version read from the WASM file */
uint32 package_version;
uint32 type_count;
uint32 import_count;
uint32 function_count;