2019-02-01 05:51:34 +00:00
|
|
|
extern crate wasmer_runtime;
|
2019-02-02 23:43:59 +00:00
|
|
|
extern crate wasmer_runtime_core;
|
2019-02-01 05:51:34 +00:00
|
|
|
|
2019-03-29 14:50:16 +00:00
|
|
|
use libc::{uint32_t, uint8_t};
|
2019-02-01 05:51:34 +00:00
|
|
|
|
2019-03-29 13:41:39 +00:00
|
|
|
pub mod error;
|
2019-03-29 14:38:12 +00:00
|
|
|
pub mod export;
|
2019-03-29 14:05:17 +00:00
|
|
|
pub mod global;
|
2019-03-29 14:50:16 +00:00
|
|
|
pub mod import;
|
2019-03-29 14:14:05 +00:00
|
|
|
pub mod instance;
|
2019-03-29 13:57:08 +00:00
|
|
|
pub mod memory;
|
2019-03-29 13:50:34 +00:00
|
|
|
pub mod module;
|
2019-03-29 14:02:50 +00:00
|
|
|
pub mod table;
|
2019-03-29 13:40:26 +00:00
|
|
|
pub mod value;
|
|
|
|
|
2019-02-01 05:51:34 +00:00
|
|
|
#[allow(non_camel_case_types)]
|
|
|
|
#[repr(C)]
|
2019-02-12 01:07:28 +00:00
|
|
|
pub enum wasmer_result_t {
|
|
|
|
WASMER_OK = 1,
|
|
|
|
WASMER_ERROR = 2,
|
2019-02-09 19:37:07 +00:00
|
|
|
}
|
|
|
|
|
2019-02-05 03:46:47 +00:00
|
|
|
#[repr(C)]
|
|
|
|
pub struct wasmer_limits_t {
|
|
|
|
pub min: uint32_t,
|
2019-02-19 06:05:08 +00:00
|
|
|
pub max: wasmer_limit_option_t,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[repr(C)]
|
|
|
|
pub struct wasmer_limit_option_t {
|
|
|
|
pub has_some: bool,
|
|
|
|
pub some: uint32_t,
|
2019-02-02 23:43:59 +00:00
|
|
|
}
|
|
|
|
|
2019-02-14 06:00:39 +00:00
|
|
|
#[repr(C)]
|
|
|
|
pub struct wasmer_byte_array {
|
|
|
|
bytes: *const uint8_t,
|
|
|
|
bytes_len: uint32_t,
|
|
|
|
}
|