MyWriterListener_OfferedDeadlineMissed;
MyWriterListener_OfferedIncompatibleQos;
writer_listener.on_publication_match = MyWriterListener_PublicationMatch;
printf("***Error: failed to get default datawriter qos\n");
}
topic,
&writer_qos,
&writer_listener ,
if (writer == NULL) {
printf("***Error: failed to create writer\n");
}
DDS_ReturnCode_t DDS_Publisher_get_default_datawriter_qos(DDS_Publisher *self, struct DDS_DataWriterQos *qos)
Copies the default DDS_DataWriterQos values into the provided DDS_DataWriterQos instance.
DDS_DataWriter * DDS_Publisher_create_datawriter(DDS_Publisher *self, DDS_Topic *topic, const struct DDS_DataWriterQos *qos, const struct DDS_DataWriterListener *listener, DDS_StatusMask mask)
Creates a DDS_DataWriter that will be attached and belong to the DDS_Publisher.
@ DDS_RETCODE_OK
Successful return.
Definition: infrastructure.ifc:1354
#define DDS_STATUS_MASK_ALL
All bits are set.
Definition: infrastructure.ifc:1431
#define DDS_DataWriterListener_INITIALIZER
Initializer for new DDS_DataWriterListener.
Definition: publication.ifc:1731
#define DDS_DataWriterQos_INITIALIZER
Initializer for new QoS instances.
Definition: publication.ifc:1238
struct DDS_DataWriterImpl DDS_DataWriter
<<interface>> Allows an application to set the value of the data to be published under a given DDS_To...
Definition: publication.ifc:174
<<interface>> DDS_Listener for writer status.
Definition: publication.ifc:1662
DDS_DataWriterListener_OfferedDeadlineMissedCallback on_offered_deadline_missed
Handles the DDS_OFFERED_DEADLINE_MISSED_STATUS status.
Definition: publication.ifc:1670
DDS_DataWriterListener_LivelinessLostCallback on_liveliness_lost
Handles the DDS_LIVELINESS_LOST_STATUS status.
Definition: publication.ifc:1679
DDS_DataWriterListener_OfferedIncompatibleQosCallback on_offered_incompatible_qos
Handles the DDS_OFFERED_INCOMPATIBLE_QOS_STATUS status.
Definition: publication.ifc:1675
QoS policies supported by a DDS_DataWriter entity.
Definition: publication.ifc:970