Expand description
Stable extern "C" ABI of rustorb-dds.
The C++ binding (cpp/include/rustorb/dds) and the Java binding
(through the FFM API) are built on this crate; the Python binding uses
PyO3 directly instead. The functions are declared, with the rules every
caller follows (handles, errors, strings, streams), in
include/rustorb/dds.h, whose names start with rdds_.
types: topic types, built the way DDS-XTypes 1.3 builds aDynamicType(7.5.2.2), member by member.stream: samples. The caller writes the values of a sample in the order of its type into an output stream, and reads a sample from an input stream in the same order; the library encodes and decodes them (XCDR1 or XCDR2, the key hash) knowing the type. Generated code therefore knows nothing of the encodings.entity: the DCPS entities, their QoS and statuses.condition: conditions and WaitSets.
Failures return a DDS ReturnCode_t (DDS 1.4, 2.2.1.1) and leave a
message for the thread (rdds_last_error_message). A Rust panic is
caught at the boundary and returns RETCODE_ERROR.
Modules§
- condition
- Conditions (
rdds_condition: guard, status and read conditions) and WaitSets (rdds_waitset). - entity
- The DCPS entities (
rdds_participant,rdds_topic,rdds_publisher,rdds_subscriber,rdds_writer,rdds_reader), their QoS, statuses and listeners, and the samples a reader returns (rdds_samples). - listener
- The listeners of participants, publishers, subscribers and topics
(
rdds_listener), which take the statuses of their writers and readers that the writers’ and readers’ own listeners do not (DDS 1.4, 2.2.4.3). - rpc
- Requests and replies (DDS-RPC 1.0):
rdds_requesterandrdds_replierover therpcmodule, with samples of the topics’ types. - stream
- Samples as streams of values in the order of their type.
- types
- Topic types (
rdds_type), built bottom-up: primitives, strings and collections from their parts, and enums, bitmasks, bitsets, structs and unions with builders that take one literal, field or member at a time (DDS-XTypes 1.3, 7.5.2.2DynamicTypeBuilder).
Constants§
- ABI_
VERSION - The version of the ABI in the header (
RDDS_ABI_VERSION). - ALREADY_
DELETED RETCODE_ALREADY_DELETED.- BAD_
PARAMETER RETCODE_BAD_PARAMETER.- ERROR
RETCODE_ERROR.- NO_DATA
RETCODE_NO_DATA.- OK
RETCODE_OK.- OUT_
OF_ RESOURCES RETCODE_OUT_OF_RESOURCES.- PRECONDITION_
NOT_ MET RETCODE_PRECONDITION_NOT_MET.- TIMEOUT
RETCODE_TIMEOUT.- UNSUPPORTED
RETCODE_UNSUPPORTED.
Functions§
- rdds_
abi_ version rdds_abi_version: the ABI version of the library, to compare withRDDS_ABI_VERSIONof the header the caller was built with.- rdds_
last_ error_ message rdds_last_error_message: the message of the last failure on this thread, valid until the next failure on the thread.
Type Aliases§
- Status
rdds_status: a DDSReturnCode_t.