Function ffi_utils::test_utils::call_0
[−]
[src]
pub fn call_0<F>(f: F) -> Result<(), i32> where
F: FnOnce(*mut c_void, extern "C" fn(_: *mut c_void, _: FfiResult)),
Call a FFI function and block until its callback gets called.
Use this if the callback accepts no arguments in addition to user_data
and error_code
.