5#ifndef WASMTIME_COMPONENT_TYPES_MODULE_HH
6#define WASMTIME_COMPONENT_TYPES_MODULE_HH
10#ifdef WASMTIME_FEATURE_COMPONENT_MODEL
18#include <wasmtime/helpers.hh>
30 WASMTIME_CLONE_WRAPPER(
ModuleType, wasmtime_module_type)
33 size_t import_count(
const Engine &engine)
const {
38 std::optional<ImportType> import_nth(
const Engine &engine,
size_t nth)
const {
46 size_t export_count(
const Engine &engine)
const {
51 std::optional<ExportType> export_nth(
const Engine &engine,
size_t nth)
const {
Global compilation state in Wasmtime.
Definition: engine.hh:22
Type information about a WebAssembly export.
Definition: export.hh:17
Type information about a WebAssembly import.
Definition: import.hh:17
Represents the type of a module.
Definition: component/types/module.hh:29
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.
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.
Build-time defines for how the C API was built.