Wasmtime
component/types/func.h
Go to the documentation of this file.
1
2
3#ifndef WASMTIME_COMPONENT_TYPES_FUNC_H
4#define WASMTIME_COMPONENT_TYPES_FUNC_H
5
6#include <wasmtime/conf.h>
7
8#ifdef WASMTIME_FEATURE_COMPONENT_MODEL
9
10#include <wasm.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
19
24WASM_API_EXTERN
27
29WASM_API_EXTERN
31
33WASM_API_EXTERN
36
38WASM_API_EXTERN
41
46WASM_API_EXTERN
48 const wasmtime_component_func_type_t *ty, size_t nth, const char **name_ret,
49 size_t *name_len_ret, wasmtime_component_valtype_t *type_ret);
50
55WASM_API_EXTERN
59
60#ifdef __cplusplus
61} // extern "C"
62#endif
63
64#endif // WASMTIME_FEATURE_COMPONENT_MODEL
65
66#endif // WASMTIME_COMPONENT_TYPES_FUNC_H
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