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
32WASM_API_EXTERN void
34
39WASM_API_EXTERN void
41
46WASM_API_EXTERN void
48
52WASM_API_EXTERN void
54 size_t arg_len);
55
62WASM_API_EXTERN void
64
65#ifdef __cplusplus
66} // extern "C"
67#endif
68
69#endif // WASMTIME_FEATURE_COMPONENT_MODEL
70#endif // WASMTIME_FEATURE_WASI
71
72#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_inherit_stdin(wasmtime_wasip2_config_t *config)
Configures this context's stdin stream to read the host process's stdin.
void wasmtime_wasip2_config_inherit_stderr(wasmtime_wasip2_config_t *config)
Configures this context's stderr stream to write to the host process's stderr.
void wasmtime_wasip2_config_delete(wasmtime_wasip2_config_t *config)
Delete a wasmtime_wasip2_config_t.
void wasmtime_wasip2_config_arg(wasmtime_wasip2_config_t *config, const char *arg, size_t arg_len)
Appends a single argument to get passed to wasm.
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.