Wasmtime
component/instance.h
1
#ifndef WASMTIME_COMPONENT_INSTANCE_H
2
#define WASMTIME_COMPONENT_INSTANCE_H
3
4
#include <wasmtime/component/component.h>
5
#include <wasmtime/component/func.h>
6
#include <
wasmtime/conf.h
>
7
#include <
wasmtime/store.h
>
8
9
#ifdef WASMTIME_FEATURE_COMPONENT_MODEL
10
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
22
typedef
struct
wasmtime_component_instance
{
24
uint64_t
store_id
;
26
size_t
index
;
27
}
wasmtime_component_instance_t
;
28
40
WASM_API_EXTERN wasmtime_component_export_index_t *
41
wasmtime_component_instance_get_export_index(
42
const
wasmtime_component_instance_t
*instance,
wasmtime_context_t
*context,
43
const
wasmtime_component_export_index_t *instance_export_index,
44
const
char
*name,
size_t
name_len);
45
56
WASM_API_EXTERN
bool
wasmtime_component_instance_get_func(
57
const
wasmtime_component_instance_t
*instance,
wasmtime_context_t
*context,
58
const
wasmtime_component_export_index_t *export_index,
59
wasmtime_component_func_t
*func_out);
60
61
#ifdef __cplusplus
62
}
// extern "C"
63
#endif
64
65
#endif
// WASMTIME_FEATURE_COMPONENT_MODEL
66
67
#endif
// WASMTIME_COMPONENT_INSTANCE_H
conf.h
Build-time defines for how the C API was built.
store.h
wasmtime_component_func
Representation of a function in Wasmtime.
Definition:
component/func.h:19
wasmtime_component_instance
Representation of a instance in Wasmtime.
Definition:
component/instance.h:22
wasmtime_component_instance::index
size_t index
Internal index within the store.
Definition:
component/instance.h:26
wasmtime_component_instance::store_id
uint64_t store_id
Internal identifier of what store this belongs to, never zero.
Definition:
component/instance.h:24
wasmtime_context
An interior pointer into a wasmtime_store_t which is used as "context" for many functions.
target
c-api
include
wasmtime
component
instance.h
Generated by
1.9.3