3#ifndef WASMTIME_COMPONENT_TYPES_FUNC_H
4#define WASMTIME_COMPONENT_TYPES_FUNC_H
8#ifdef WASMTIME_FEATURE_COMPONENT_MODEL
WASM_API_EXTERN bool wasmtime_component_func_type_result(const wasmtime_component_func_type_t *ty, wasmtime_component_valtype_t *type_ret)
Returns the result, if any, of this component function type.
WASM_API_EXTERN size_t wasmtime_component_func_type_param_count(const wasmtime_component_func_type_t *ty)
Returns the number of parameters of a component function type.
WASM_API_EXTERN wasmtime_component_func_type_t * wasmtime_component_func_type_clone(const wasmtime_component_func_type_t *ty)
Clones a component function type.
WASM_API_EXTERN void wasmtime_component_func_type_delete(wasmtime_component_func_type_t *ty)
Deallocates a component instance type.
struct wasmtime_component_func_type_t wasmtime_component_func_type_t
Opaque type representing a component function type.
Definition: component/types/func.h:18
WASM_API_EXTERN bool wasmtime_component_func_type_param_nth(const wasmtime_component_func_type_t *ty, size_t nth, const char **name_ret, size_t *name_len_ret, wasmtime_component_valtype_t *type_ret)
Retrieves the nth parameter.
WASM_API_EXTERN bool wasmtime_component_func_type_async(const wasmtime_component_func_type_t *ty)
Returns whether this is an async function.
Build-time defines for how the C API was built.
Represents a single value type in the component model.
Definition: component/types/val.h:463