3#ifndef WASMTIME_COMPONENT_TYPES_RESOURCE_H
4#define WASMTIME_COMPONENT_TYPES_RESOURCE_H
8#ifdef WASMTIME_FEATURE_COMPONENT_MODEL
21typedef struct wasmtime_component_resource_type
Build-time defines for how the C API was built.
WASM_API_EXTERN wasmtime_component_resource_type_t * wasmtime_component_resource_type_new_host(uint32_t ty)
Creates a new resource type representing a host-defined resource.
WASM_API_EXTERN wasmtime_component_resource_type_t * wasmtime_component_resource_type_clone(const wasmtime_component_resource_type_t *ty)
Clones a resource type.
struct wasmtime_component_resource_type wasmtime_component_resource_type_t
Represents the type of a component resource.
Definition: resource.h:21
WASM_API_EXTERN void wasmtime_component_resource_type_delete(wasmtime_component_resource_type_t *resource)
Deallocates a resource type.
WASM_API_EXTERN bool wasmtime_component_resource_type_equal(const wasmtime_component_resource_type_t *a, const wasmtime_component_resource_type_t *b)
Compares two resource types for equality.