mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-12 16:41:21 +00:00
Add first c test to test the C api
This commit is contained in:
@ -1,24 +1,21 @@
|
||||
#include <cstdarg>
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
enum class wasmer_compile_result_t {
|
||||
typedef enum {
|
||||
WASMER_COMPILE_OK = 1,
|
||||
WASMER_COMPILE_ERROR = 2,
|
||||
};
|
||||
} wasmer_compile_result_t;
|
||||
|
||||
struct wasmer_import_object_t;
|
||||
typedef struct wasmer_import_object_t wasmer_import_object_t;
|
||||
|
||||
struct wasmer_instance_t;
|
||||
|
||||
extern "C" {
|
||||
typedef struct wasmer_instance_t wasmer_instance_t;
|
||||
|
||||
void wasmer_import_object_destroy(wasmer_import_object_t *import_object);
|
||||
|
||||
wasmer_import_object_t *wasmer_import_object_new();
|
||||
wasmer_import_object_t *wasmer_import_object_new(void);
|
||||
|
||||
wasmer_compile_result_t wasmer_instantiate(wasmer_instance_t *instance,
|
||||
const char *bytes,
|
||||
wasmer_import_object_t *import_object);
|
||||
|
||||
} // extern "C"
|
||||
|
Reference in New Issue
Block a user