Expose API to get import/export function's param/result valkind (#3363)
Export API: ```C wasm_func_type_get_param_count wasm_func_type_get_param_valkind wasm_func_type_get_result_count wasm_func_type_get_result_valkind ``` And change wasm_import_type/wasm_export_type to wasm_import_t/wasm_export_t.
This commit is contained in:
@ -176,12 +176,6 @@ wasm_defined_type_is_array_type(WASMType *const def_type)
|
||||
return wasm_type_is_array_type(def_type);
|
||||
}
|
||||
|
||||
uint32
|
||||
wasm_func_type_get_param_count(WASMFuncType *const func_type)
|
||||
{
|
||||
return func_type->param_count;
|
||||
}
|
||||
|
||||
wasm_ref_type_t
|
||||
wasm_func_type_get_param_type(WASMFuncType *const func_type, uint32 param_idx)
|
||||
{
|
||||
@ -202,12 +196,6 @@ wasm_func_type_get_param_type(WASMFuncType *const func_type, uint32 param_idx)
|
||||
return ref_type;
|
||||
}
|
||||
|
||||
uint32
|
||||
wasm_func_type_get_result_count(WASMFuncType *const func_type)
|
||||
{
|
||||
return (uint32)func_type->result_count;
|
||||
}
|
||||
|
||||
wasm_ref_type_t
|
||||
wasm_func_type_get_result_type(WASMFuncType *const func_type, uint32 result_idx)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user