Wasmtime
resource.h
Go to the documentation of this file.
1
2
3#ifndef WASMTIME_COMPONENT_TYPES_RESOURCE_H
4#define WASMTIME_COMPONENT_TYPES_RESOURCE_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
21typedef struct wasmtime_component_resource_type
23
35WASM_API_EXTERN
38
45WASM_API_EXTERN
48
53WASM_API_EXTERN
57
62WASM_API_EXTERN
65
66#ifdef __cplusplus
67} // extern "C"
68#endif
69
70#endif // WASMTIME_FEATURE_COMPONENT_MODEL
71
72#endif // WASMTIME_COMPONENT_TYPES_RESOURCE_H
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.