Wasmtime
types/structref.h
Go to the documentation of this file.
1
7#ifndef WASMTIME_TYPES_STRUCTREF_H
8#define WASMTIME_TYPES_STRUCTREF_H
9
10#include <wasmtime/conf.h>
11
12#ifdef WASMTIME_FEATURE_GC
13
14#include <wasm.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
27
29#define WASMTIME_STORAGE_KIND_I8 9
31#define WASMTIME_STORAGE_KIND_I16 10
32
40typedef struct wasmtime_field_type {
49
58typedef struct wasmtime_struct_type wasmtime_struct_type_t;
59
70WASM_API_EXTERN wasmtime_struct_type_t *
72 const wasmtime_field_type_t *fields, size_t nfields);
73
78
79#ifdef __cplusplus
80} // extern "C"
81#endif
82
83#endif // WASMTIME_FEATURE_GC
84
85#endif // WASMTIME_TYPES_STRUCTREF_H
Build-time defines for how the C API was built.
Compilation environment and configuration.
Describes the type and mutability of a struct field or array element.
Definition: types/structref.h:40
wasmtime_storage_kind_t kind
Definition: types/structref.h:44
bool mutable_
Definition: types/structref.h:47
WASM_API_EXTERN void wasmtime_struct_type_delete(wasmtime_struct_type_t *ty)
Delete a struct type.
struct wasmtime_field_type wasmtime_field_type_t
Convenience alias for wasmtime_field_type.
struct wasmtime_struct_type wasmtime_struct_type_t
An opaque handle to a WebAssembly struct type definition.
Definition: types/structref.h:58
WASM_API_EXTERN wasmtime_struct_type_t * wasmtime_struct_type_new(const wasm_engine_t *engine, const wasmtime_field_type_t *fields, size_t nfields)
Create a new struct type.
uint8_t wasmtime_storage_kind_t
Discriminant for storage types in struct/array field types.
Definition: types/structref.h:26