#ifndef WASME_H
#define WASME_H
#include <stdint.h>
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct wasme_ctx_s wasme_ctx_t;
typedef struct {
const char* name;
const uint8_t* data;
uint32_t data_len;
} wasme_task_t;
wasme_ctx_t* WASME_init(const wasme_task_t* task, uint32_t mem_limit);
int WASME_run(wasme_ctx_t* ctx, const char* name, int32_t argc, const void** argv);
void WASME_deinit(wasme_ctx_t** ctx);
#ifdef __cplusplus
}
#endif
#endif