2019-01-24 23:44:08 +00:00
|
|
|
use wasmer_runtime_core::vm::Ctx;
|
2018-12-13 23:09:07 +00:00
|
|
|
|
|
|
|
// TODO: Need to implement.
|
|
|
|
|
|
|
|
/// emscripten: dlopen(filename: *const c_char, flag: c_int) -> *mut c_void
|
2019-02-02 23:28:50 +00:00
|
|
|
pub fn _dlopen(_filename: u32, _flag: u32, _ctx: &mut Ctx) -> i32 {
|
2018-12-13 23:09:07 +00:00
|
|
|
debug!("emscripten::_dlopen");
|
|
|
|
-1
|
|
|
|
}
|
|
|
|
|
|
|
|
/// emscripten: dlclose(handle: *mut c_void) -> c_int
|
2019-02-02 23:28:50 +00:00
|
|
|
pub fn _dlclose(_filename: u32, _ctx: &mut Ctx) -> i32 {
|
2018-12-13 23:09:07 +00:00
|
|
|
debug!("emscripten::_dlclose");
|
|
|
|
-1
|
|
|
|
}
|
|
|
|
|
|
|
|
/// emscripten: dlsym(handle: *mut c_void, symbol: *const c_char) -> *mut c_void
|
2019-02-02 23:28:50 +00:00
|
|
|
pub fn _dlsym(_filepath: u32, _symbol: u32, _ctx: &mut Ctx) -> i32 {
|
2019-01-26 23:02:51 +00:00
|
|
|
debug!("emscripten::_dlsym");
|
2018-12-13 23:09:07 +00:00
|
|
|
-1
|
|
|
|
}
|
|
|
|
|
|
|
|
/// emscripten: dlerror() -> *mut c_char
|
2019-02-02 23:28:50 +00:00
|
|
|
pub fn _dlerror(_ctx: &mut Ctx) -> i32 {
|
2018-12-13 23:09:07 +00:00
|
|
|
debug!("emscripten::_dlerror");
|
|
|
|
-1
|
|
|
|
}
|