Wasmtime
component/func.h
Go to the documentation of this file.
1
2
3#ifndef WASMTIME_COMPONENT_FUNC_H
4#define WASMTIME_COMPONENT_FUNC_H
5
7#include <wasmtime/conf.h>
8#include <wasmtime/error.h>
9#include <wasmtime/store.h>
10
11#ifdef WASMTIME_FEATURE_COMPONENT_MODEL
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
25 struct {
27 uint64_t store_id;
29 uint32_t __private1;
30 };
31
33 uint32_t __private2;
35
48 const wasmtime_component_val_t *args, size_t args_size,
49 wasmtime_component_val_t *results, size_t results_size);
50
59WASM_API_EXTERN wasmtime_error_t *
61 wasmtime_context_t *context);
62
63#ifdef __cplusplus
64} // extern "C"
65#endif
66
67#endif // WASMTIME_FEATURE_COMPONENT_MODEL
68
69#endif // WASMTIME_COMPONENT_FUNC_H
wasmtime_error_t * wasmtime_component_func_post_return(const wasmtime_component_func_t *func, wasmtime_context_t *context)
Invokes the post-return canonical ABI option, if specified, after a wasmtime_component_func_call has ...
struct wasmtime_component_func wasmtime_component_func_t
Representation of a function in Wasmtime.
wasmtime_error_t * wasmtime_component_func_call(const wasmtime_component_func_t *func, wasmtime_context_t *context, const wasmtime_component_val_t *args, size_t args_size, wasmtime_component_val_t *results, size_t results_size)
Invokes func with the args given and returns the result.
Build-time defines for how the C API was built.
Definition and accessors of wasmtime_error_t.
Representation of a function in Wasmtime.
Definition: component/func.h:24
uint32_t __private1
Private internal wasmtime information.
Definition: component/func.h:29
uint64_t store_id
Internal identifier of what store this belongs to, never zero.
Definition: component/func.h:27
uint32_t __private2
Private internal wasmtime information.
Definition: component/func.h:33
Represents possible runtime values which a component function can either consume or produce.
Definition: component/val.h:183
An interior pointer into a wasmtime_store_t which is used as "context" for many functions.
Errors generated by Wasmtime.