Skip to main content

nros_rmw_cffi_register

Function nros_rmw_cffi_register 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn nros_rmw_cffi_register( vtable: *const NrosRmwVtable, ) -> NrosRmwRet
👎Deprecated since 0.2.0:

use nros_rmw_cffi_register_named with the backend’s canonical name; the unnamed shim will be removed

Expand description

Register a custom RMW backend vtable (legacy single-arg form).

Phase 104.B.2 — internally forwards to nros_rmw_cffi_register_named with the literal name "default". Preserved as a one-release source-compat shim so backend ctors authored before the named-registry switchover keep working.

Deprecated (Phase 128.B.5). All in-tree callers now use nros_rmw_cffi_register_named directly so the registry slot is keyed by the backend’s canonical name ("zenoh", "dds", "xrce", "cyclonedds", …). New backends MUST follow the same pattern; the unnamed shim will be removed in a follow-up phase once external callers have migrated.

§Safety

The vtable pointer must remain valid for the lifetime of the program. All function pointers in the vtable must be valid.