#ifndef WASMTIME_COMPONENT_INSTANCE_H #define WASMTIME_COMPONENT_INSTANCE_H #include #ifdef WASMTIME_FEATURE_COMPONENT_MODEL #ifdef __cplusplus extern "C" { #endif /// \brief Representation of a instance in Wasmtime. /// /// Instances are represented with a 64-bit identifying integer in Wasmtime. /// They do not have any destructor associated with them. Instances cannot /// interoperate between #wasmtime_store_t instances and if the wrong instance /// is passed to the wrong store then it may trigger an assertion to abort the /// process. typedef struct wasmtime_component_instance { /// Internal identifier of what store this belongs to, never zero. uint64_t store_id; /// Internal index within the store. size_t index; } wasmtime_component_instance_t; #ifdef __cplusplus } // extern "C" #endif #endif // WASMTIME_FEATURE_COMPONENT_MODEL #endif // WASMTIME_COMPONENT_INSTANCE_H