#[unsafe(no_mangle)]pub unsafe extern "C" fn ffi_register_callback(
name: *const c_char,
cb: extern "C" fn(FfiBuffer) -> FfiResult,
) -> i32Expand description
Register a C function pointer as a named callback.
name must be a valid null-terminated UTF-8 string.
Returns 0 on success, -1 if name is null or not valid UTF-8,
-2 if the registry lock is poisoned.
Exported as: ffi_register_callback
§Safety
name must be a valid null-terminated C string.