Wasmtime
component/types/module.h
Go to the documentation of this file.
1
2
3#ifndef WASMTIME_COMPONENT_TYPES_MODULE_H
4#define WASMTIME_COMPONENT_TYPES_MODULE_H
5
6#include <wasmtime/conf.h>
7
8#ifdef WASMTIME_FEATURE_COMPONENT_MODEL
9
10#include <wasm.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
17typedef struct wasmtime_module_type wasmtime_module_type_t;
18
23WASM_API_EXTERN
26
28WASM_API_EXTERN
30
32WASM_API_EXTERN
34 const wasm_engine_t *engine);
35
40WASM_API_EXTERN
43 const wasm_engine_t *engine, size_t nth);
44
46WASM_API_EXTERN
48 const wasm_engine_t *engine);
49
54WASM_API_EXTERN
57 const wasm_engine_t *engine, size_t nth);
58
59#ifdef __cplusplus
60} // extern "C"
61#endif
62
63#endif // WASMTIME_FEATURE_COMPONENT_MODEL
64
65#endif // WASMTIME_COMPONENT_TYPES_MODULE_H
WASM_API_EXTERN size_t wasmtime_module_type_export_count(const wasmtime_module_type_t *ty, const wasm_engine_t *engine)
Returns the number of exports of a module type.
WASM_API_EXTERN wasm_importtype_t * wasmtime_module_type_import_nth(const wasmtime_module_type_t *ty, const wasm_engine_t *engine, size_t nth)
Retrieves the nth import.
struct wasmtime_module_type wasmtime_module_type_t
Represents the type of a module.
Definition: component/types/module.h:17
WASM_API_EXTERN size_t wasmtime_module_type_import_count(const wasmtime_module_type_t *ty, const wasm_engine_t *engine)
Returns the number of imports of a module type.
WASM_API_EXTERN wasm_exporttype_t * wasmtime_module_type_export_nth(const wasmtime_module_type_t *ty, const wasm_engine_t *engine, size_t nth)
Retrieves the nth export.
WASM_API_EXTERN wasmtime_module_type_t * wasmtime_module_type_clone(const wasmtime_module_type_t *ty)
Clones a module type.
WASM_API_EXTERN void wasmtime_module_type_delete(wasmtime_module_type_t *ty)
Deallocates a component instance type.
Build-time defines for how the C API was built.
Compilation environment and configuration.
An opaque object representing the type of an export.
An opaque object representing the type of an import.