Wasmtime
wasip2.h
Go to the documentation of this file.
1
2
3#ifndef WASMTIME_WASIP2_H
4#define WASMTIME_WASIP2_H
5
6#include <wasm.h>
7#include <wasmtime/conf.h>
8
9#ifdef WASMTIME_FEATURE_WASI
10#ifdef WASMTIME_FEATURE_COMPONENT_MODEL
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
18
23
28WASM_API_EXTERN void
30
37WASM_API_EXTERN void
39
40#ifdef __cplusplus
41} // extern "C"
42#endif
43
44#endif // WASMTIME_FEATURE_COMPONENT_MODEL
45#endif // WASMTIME_FEATURE_WASI
46
47#endif // WASMTIME_WASIP2_H
Build-time defines for how the C API was built.
struct wasmtime_wasip2_config_t wasmtime_wasip2_config_t
Config for the WASIP2 context.
Definition: wasip2.h:17
wasmtime_wasip2_config_t * wasmtime_wasip2_config_new()
Create a wasmtime_wasip2_config_t.
void wasmtime_wasip2_config_delete(wasmtime_wasip2_config_t *config)
Delete a wasmtime_wasip2_config_t.
void wasmtime_wasip2_config_inherit_stdout(wasmtime_wasip2_config_t *config)
Configures this context's stdout stream to write to the host process's stdout.