wamr_sys

Function wasm_externref_set_cleanup

Source
pub unsafe extern "C" fn wasm_externref_set_cleanup(
    module_inst: wasm_module_inst_t,
    extern_obj: *mut c_void,
    extern_obj_cleanup: Option<unsafe extern "C" fn(arg1: *mut c_void)>,
) -> bool
Expand description

Set cleanup callback to release external object.

@param module_inst the WASM module instance that the extern object belongs to @param extern_obj the external object to which to set the extern_obj_cleanup cleanup callback. @param extern_obj_cleanup a callback to release extern_obj

@return true if success, false otherwise