3#ifndef WASMTIME_COMPONENT_TYPES_MODULE_H
4#define WASMTIME_COMPONENT_TYPES_MODULE_H
8#ifdef WASMTIME_FEATURE_COMPONENT_MODEL
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.