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:
@ -230,16 +230,6 @@ wasm_defined_type_is_struct_type(const wasm_defined_type_t def_type);
|
||||
WASM_RUNTIME_API_EXTERN bool
|
||||
wasm_defined_type_is_array_type(const wasm_defined_type_t def_type);
|
||||
|
||||
/**
|
||||
* Get parameter count of a function type
|
||||
*
|
||||
* @param func_type the specified function type
|
||||
*
|
||||
* @return the param count of the specified function type
|
||||
*/
|
||||
WASM_RUNTIME_API_EXTERN uint32_t
|
||||
wasm_func_type_get_param_count(const wasm_func_type_t func_type);
|
||||
|
||||
/**
|
||||
* Get type of a specified parameter of a function type
|
||||
*
|
||||
@ -253,16 +243,6 @@ WASM_RUNTIME_API_EXTERN wasm_ref_type_t
|
||||
wasm_func_type_get_param_type(const wasm_func_type_t func_type,
|
||||
uint32_t param_idx);
|
||||
|
||||
/**
|
||||
* Get result count of a function type
|
||||
*
|
||||
* @param func_type the specified function type
|
||||
*
|
||||
* @return the result count of the specified function type
|
||||
*/
|
||||
WASM_RUNTIME_API_EXTERN uint32_t
|
||||
wasm_func_type_get_result_count(const wasm_func_type_t func_type);
|
||||
|
||||
/**
|
||||
* Get type of a specified result of a function type
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user