#ifndef WASMTIME_COMPONENT_FUNC_H
#define WASMTIME_COMPONENT_FUNC_H
#include <wasmtime/component/val.h>
#include <wasmtime/conf.h>
#include <wasmtime/error.h>
#include <wasmtime/store.h>
#ifdef WASMTIME_FEATURE_COMPONENT_MODEL
#ifdef __cplusplus
extern "C" {
#endif
typedef struct wasmtime_component_func {
struct {
uint64_t store_id;
uint32_t __private1;
};
uint32_t __private2;
} wasmtime_component_func_t;
WASM_API_EXTERN wasmtime_error_t *wasmtime_component_func_call(
const wasmtime_component_func_t *func, wasmtime_context_t *context,
const wasmtime_component_val_t *args, size_t args_size,
wasmtime_component_val_t *results, size_t results_size);
WASM_API_EXTERN wasmtime_error_t *
wasmtime_component_func_post_return(const wasmtime_component_func_t *func,
wasmtime_context_t *context);
#ifdef __cplusplus
} #endif
#endif
#endif