Wasmtime
component/instance.h
Go to the documentation of this file.
1
2
3#ifndef WASMTIME_COMPONENT_INSTANCE_H
4#define WASMTIME_COMPONENT_INSTANCE_H
5
8#include <wasmtime/conf.h>
9#include <wasmtime/store.h>
10
11#ifdef WASMTIME_FEATURE_COMPONENT_MODEL
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
26 uint64_t store_id;
28 uint32_t __private;
30
44 const wasmtime_component_instance_t *instance, wasmtime_context_t *context,
45 const wasmtime_component_export_index_t *instance_export_index,
46 const char *name, size_t name_len);
47
59 const wasmtime_component_instance_t *instance, wasmtime_context_t *context,
60 const wasmtime_component_export_index_t *export_index,
62
63#ifdef __cplusplus
64} // extern "C"
65#endif
66
67#endif // WASMTIME_FEATURE_COMPONENT_MODEL
68
69#endif // WASMTIME_COMPONENT_INSTANCE_H
struct wasmtime_component_export_index_t wasmtime_component_export_index_t
A value which represents a known export of a component.
Definition: component/component.h:113
struct wasmtime_component_instance wasmtime_component_instance_t
Representation of a instance in Wasmtime.
wasmtime_component_export_index_t * wasmtime_component_instance_get_export_index(const wasmtime_component_instance_t *instance, wasmtime_context_t *context, const wasmtime_component_export_index_t *instance_export_index, const char *name, size_t name_len)
A methods similar to wasmtime_component_get_export_index except for this instance.
bool wasmtime_component_instance_get_func(const wasmtime_component_instance_t *instance, wasmtime_context_t *context, const wasmtime_component_export_index_t *export_index, wasmtime_component_func_t *func_out)
Looks up an exported function by name within this wasmtime_component_instance_t.
Build-time defines for how the C API was built.
Representation of a function in Wasmtime.
Definition: component/func.h:24
Representation of a instance in Wasmtime.
Definition: component/instance.h:24
uint32_t __private
Internal index within the store.
Definition: component/instance.h:28
uint64_t store_id
Internal identifier of what store this belongs to, never zero.
Definition: component/instance.h:26
An interior pointer into a wasmtime_store_t which is used as "context" for many functions.