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
12extern "C" {
13#endif
14
24 uint64_t store_id;
26 size_t index;
28
40WASM_API_EXTERN wasmtime_component_export_index_t *
41wasmtime_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
56WASM_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,
60
61#ifdef __cplusplus
62} // extern "C"
63#endif
64
65#endif // WASMTIME_FEATURE_COMPONENT_MODEL
66
67#endif // WASMTIME_COMPONENT_INSTANCE_H
Build-time defines for how the C API was built.
Representation of a function in Wasmtime.
Definition: component/func.h:19
Representation of a instance in Wasmtime.
Definition: component/instance.h:22
size_t index
Internal index within the store.
Definition: component/instance.h:26
uint64_t store_id
Internal identifier of what store this belongs to, never zero.
Definition: component/instance.h:24
An interior pointer into a wasmtime_store_t which is used as "context" for many functions.