Type Definition tvm::runtime::function::ffi::TVMBackendPackedCFunc [−][src]
pub type TVMBackendPackedCFunc = Option<unsafe extern "C" fn(*mut TVMValue, *mut i32, i32, *mut TVMValue, *mut i32, *mut c_void) -> i32>;
Expand description
\brief Signature for backend functions exported as DLL.
\param args The arguments \param type_codes The type codes of the arguments \param num_args Number of arguments. \param out_ret_value The output value of the the return value. \param out_ret_tcode The output type code of the return value. \param resource_handle Pointer to associated resource.
\return 0 if success, -1 if failure happens, set error via TVMAPISetLastError.