2019-01-09 06:49:11 +00:00
|
|
|
use wasmer_runtime::Instance;
|
2018-12-13 23:09:07 +00:00
|
|
|
|
|
|
|
// TODO: Need to implement.
|
|
|
|
|
|
|
|
/// emscripten: dlopen(filename: *const c_char, flag: c_int) -> *mut c_void
|
|
|
|
pub extern "C" fn _dlopen(filename: u32, flag: c_int) -> u32 {
|
|
|
|
debug!("emscripten::_dlopen");
|
|
|
|
-1
|
|
|
|
}
|
|
|
|
|
|
|
|
/// emscripten: dlclose(handle: *mut c_void) -> c_int
|
|
|
|
pub extern "C" fn _dlclose(filename: u32) -> u32 {
|
|
|
|
debug!("emscripten::_dlclose");
|
|
|
|
-1
|
|
|
|
}
|
|
|
|
|
|
|
|
/// emscripten: dlsym(handle: *mut c_void, symbol: *const c_char) -> *mut c_void
|
|
|
|
pub extern "C" fn _dlsym(filepath: u32, symbol: u32) -> u32 {
|
|
|
|
debug!("emscripten::_dlerror");
|
|
|
|
-1
|
|
|
|
}
|
|
|
|
|
|
|
|
/// emscripten: dlerror() -> *mut c_char
|
|
|
|
pub extern "C" fn _dlerror() -> u32 {
|
|
|
|
debug!("emscripten::_dlerror");
|
|
|
|
-1
|
|
|
|
}
|