3#ifndef WASMTIME_WASIP2_H
4#define WASMTIME_WASIP2_H
9#ifdef WASMTIME_FEATURE_WASI
10#ifdef WASMTIME_FEATURE_COMPONENT_MODEL
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.