Skip to main content

hdds_reader_create_with_type

Function hdds_reader_create_with_type 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn hdds_reader_create_with_type( participant: *mut HddsParticipant, topic_name: *const c_char, type_name: *const c_char, qos: *const HddsQoS, ) -> *mut HddsDataReader
Expand description

Create a DataReader for a topic with custom QoS and explicit type name.

The type_name is announced via SEDP and must match the remote endpoint’s type name for topic matching (e.g. "P_Mount_PSM::C_Rotational_Mount_setPosition"). If type_name is NULL, falls back to the default "RawBytes" type name.

§Safety

  • participant must be a valid pointer returned from hdds_participant_create
  • topic_name must be a valid null-terminated C string
  • type_name must be a valid null-terminated C string (or NULL for default)
  • qos must be a valid pointer returned from hdds_qos_* functions (or NULL for default)