|
nros rmw-cffi
C vtable for plugging a third-party RMW backend into nros
|
#include <rmw_entity.h>
Data Fields | |
| uint8_t | _reserved [8] |
| void * | backend_data |
| const char * | namespace_ |
| const char * | node_name |
Per-process RMW session — the entity returned by vtable->open.
Carries the node identity (used for diagnostics + wire-level topic-key derivation in some backends) plus the opaque backend-private state.
The 8-byte _reserved slot is sized for a forthcoming vtable: const struct nros_rmw_vtable_t * field that Phase 104's multi-instance work will land here. Backends and runtime keep these bytes zero.
| uint8_t nros_rmw_session_t::_reserved[8] |
Reserved for future fields (Phase 104 vtable pointer slot); must be zero.
| void* nros_rmw_session_t::backend_data |
Opaque backend state. NULL for an uninitialised session.
| const char* nros_rmw_session_t::namespace_ |
Node namespace (borrowed from caller; outlives the session).
| const char* nros_rmw_session_t::node_name |
Node name (borrowed from caller; outlives the session).