#ifndef WASMI_STORE_H
#define WASMI_STORE_H
#include <wasm.h>
#include <wasmi/error.h>
#define own
#ifdef __cplusplus
extern "C" {
#endif
typedef struct wasmi_store wasmi_store_t;
typedef struct wasmi_context wasmi_context_t;
WASM_API_EXTERN own wasmi_store_t *
wasmi_store_new(wasm_engine_t *engine, void *data, void (*finalizer)(void *));
WASM_API_EXTERN void wasmi_store_delete(own wasmi_store_t *store);
WASM_API_EXTERN wasmi_context_t *wasmi_store_context(wasmi_store_t *store);
WASM_API_EXTERN void *wasmi_context_get_data(const wasmi_context_t *context);
WASM_API_EXTERN void wasmi_context_set_data(wasmi_context_t *context,
void *data);
WASM_API_EXTERN wasmi_error_t *wasmi_context_set_fuel(wasmi_context_t *store,
uint64_t fuel);
WASM_API_EXTERN wasmi_error_t *
wasmi_context_get_fuel(const wasmi_context_t *context, uint64_t *fuel);
#ifdef __cplusplus
} #endif
#undef own
#endif