33 #ifndef dds_c_subscription_h
34 #define dds_c_subscription_h
101 #define DDS_RequestedDeadlineMissedStatus_INITIALIZER \
102 { 0L, 0L, DDS_HANDLE_NIL_NATIVE }
107 #define DDS_RequestedDeadlineMissedStatus_reset(_s) \
109 (_s)->total_count_change = 0;\
146 #define DDS_LivelinessChangedStatus_INITIALIZER { 0L, 0L, 0L, 0L, \
147 DDS_HANDLE_NIL_NATIVE }
151 #define DDS_LivelinessChangedStatus_reset(_s) \
153 (_s)->alive_count_change = 0;\
154 (_s)->not_alive_count_change = 0;\
186 #define DDS_RequestedIncompatibleQosStatus_INITIALIZER \
187 { 0L, 0L, DDS_INVALID_QOS_POLICY_ID, DDS_SEQUENCE_INITIALIZER(struct DDS_QosPolicyCount) }
191 #define DDS_RequestedIncompatibleQosStatus_reset(_s) \
193 (_s)->total_count_change = 0;\
234 #define DDS_REJECTED_BY_INSTANCE_LIMIT DDS_REJECTED_BY_INSTANCES_LIMIT
266 #define DDS_SampleRejectedStatus_INITIALIZER \
267 { 0L, 0L, DDS_NOT_REJECTED,DDS_HANDLE_NIL_NATIVE }
271 #define DDS_SampleRejectedStatus_reset(_s) \
273 (_s)->total_count_change = 0;\
313 #define DDS_DataReaderInstanceReplacedStatus_INITIALIZER \
314 { 0L, 0L, DDS_HANDLE_NIL_NATIVE, \
315 DDS_HANDLE_NIL_NATIVE, DDS_HANDLE_NIL_NATIVE, 0L }
319 #define DDS_DataReaderInstanceReplacedStatus_reset(_s) \
321 (_s)->total_count_change = 0;\
357 #define DDS_SubscriptionMatchedStatus_INITIALIZER \
358 { 0L, 0L, 0L, 0L, DDS_HANDLE_NIL_NATIVE}
362 #define DDS_SubscriptionMatchedStatus_reset(_s) \
364 (_s)->total_count_change = 0;\
365 (_s)->current_count_change = 0;\
371 DDS_RequestedDeadlineMissedStatus_initialize(
377 DDS_RequestedIncompatibleQosStatus_initialize(
385 DDS_SampleLostStatus_initialize(
391 DDS_SampleRejectedStatus_initialize(
397 DDS_SubscriptionMatchedStatus_initialize(
403 DDS_LivelinessChangedStatus_initialize(
409 DDS_DataReaderInstanceReplacedStatus_initialize(
562 DDS_Long no_writers_generation_count;
597 #define DDS_SampleInfo_INITIALIZER \
599 0,0,0,{0,0},DDS_HANDLE_NIL_NATIVE,\
600 DDS_HANDLE_NIL_NATIVE,0,0,0,0,0,RTI_FALSE,{0,0},\
601 REDA_SEQUENCE_NUMBER_ZERO,\
602 REDA_SEQUENCE_NUMBER_ZERO,\
621 #ifdef DOXYGEN_DOCUMENTATION_ONLY
690 #define DDS_SampleLostStatus_INITIALIZER \
692 0L, 0L,DDS_SAMPLE_LOST_NOT_LOST,DDS_SampleInfo_INITIALIZER \
697 #define DDS_SampleLostStatus_reset(_s) \
699 (_s)->total_count_change = 0;\
713 struct DDS_DataReaderData
754 struct DDS_TypeSupportQosPolicy type_support;
770 struct RTI_ManagementQosPolicy management;
774 struct DDS_DataReaderData *data;
810 #define DDS_DataReaderQos_INITIALIZER { \
811 DDS_DEADLINE_QOS_POLICY_DEFAULT, \
812 DDS_LIVELINESS_QOS_POLICY_DEFAULT, \
813 DDS_HISTORY_QOS_POLICY_DEFAULT, \
814 DDS_RESOURCE_LIMITS_QOS_POLICY_DEFAULT, \
815 DDS_OWNERSHIP_QOS_POLICY_DEFAULT, \
816 DDS_RELIABILITY_QOS_POLICY_DEFAULT, \
817 DDS_DURABILITY_QOS_POLICY_DEFAULT, \
818 DDS_TYPESUPPORT_QOS_POLICY_DEFAULT, \
819 DDS_DATA_READER_PROTOCOL_QOS_POLICY_DEFAULT, \
820 DDS_TRANSPORT_QOS_POLICY_DEFAULT, \
821 DDS_DATAREADERRESOURCE_LIMITS_QOS_POLICY_DEFAULT, \
822 RTI_MANAGEMENT_QOS_POLICY_DEFAULT, \
844 struct RTI_ManagementQosPolicy management;
869 DDS_SubscriberQos_is_equal(
882 #define DDS_SubscriberQos_INITIALIZER { \
883 DDS_ENTITY_FACTORY_QOS_POLICY_DEFAULT, \
884 RTI_MANAGEMENT_QOS_POLICY_DEFAULT \
907 #ifdef DOXYGEN_DOCUMENTATION_ONLY
982 #if DOXYGEN_DOCUMENTATION_ONLY
990 struct CDR_Stream_t *stream,
994 FUNCTION_MUST_TYPEDEF(
1000 struct CDR_Stream_t *stream,
1005 #if DOXYGEN_DOCUMENTATION_ONLY
1010 void *listener_data,
1012 const void *
const sample,
1016 FUNCTION_MUST_TYPEDEF(
1019 void *listener_data,
1021 const void *
const sample,
1092 #define DDS_DataReaderListener_INITIALIZER \
1094 DDS_Listener_INITIALIZER, \
1095 (DDS_DataReaderListener_RequestedDeadlineMissedCallback)NULL, \
1096 (DDS_DataReaderListener_RequestedIncompatibleQosCallback)NULL, \
1097 (DDS_DataReaderListener_SampleRejectedCallback)NULL, \
1098 (DDS_DataReaderListener_LivelinessChangedCallback)NULL, \
1099 (DDS_DataReaderListener_DataAvailableCallback)NULL, \
1100 (DDS_DataReaderListener_SubscriptionMatchedCallback)NULL, \
1101 (DDS_DataReaderListener_SampleLostCallback)NULL,\
1102 (DDS_DataReaderListener_BeforeSampleDeserializeCallback)NULL,\
1103 (DDS_DataReaderListener_BeforeSampleCommitCallback)NULL,\
1104 (DDS_DataReaderListener_InstanceReplacedCallback)NULL\
1139 #define DDS_SubscriberListener_INITIALIZER \
1140 { DDS_DataReaderListener_INITIALIZER, \
1141 (DDS_SubscriberListener_DataOnReadersCallback)NULL }
1158 #define DDS_Subscriber_as_entity(subscriberPtr) \
1159 ((DDS_Entity*) subscriberPtr)
1162 #ifdef DOXYGEN_DOCUMENTATION_ONLY
1229 const char *topic_name);
1273 #define DDS_DataReader_as_entity(dataReaderPtr) \
1274 ((DDS_Entity*) dataReaderPtr)
1277 #ifdef DOXYGEN_DOCUMENTATION_ONLY
1291 #if INCLUDE_API_LOOKUP
1295 DDS_DataReader_get_matched_publications(
1297 struct DDS_InstanceHandleSeq *publication_handles);
1300 struct DDS_PublicationBuiltinTopicData;
1302 #if INCLUDE_API_LOOKUP
1306 DDS_DataReader_get_matched_publication_data(
1308 struct DDS_PublicationBuiltinTopicData *publication_data,
1432 struct NDDS_Subscriber_Properties
1439 #define NDDS_Subscriber_Properties_INITIALIZER { \
1448 struct NDDS_DataReader_Properties
1455 #define NDDS_DataReader_Properties_INITIALIZER {0}
1468 #define DDS_UntypedSampleSeq REDA_Sequence
1469 #define DDS_UntypedSampleSeq_initialize REDA_Sequence_initialize
1470 #define DDS_UntypedSampleSeq_finalize REDA_Sequence_finalize
1471 #define DDS_UntypedSampleSeq_get_maximum REDA_Sequence_get_maximum
1472 #define DDS_UntypedSampleSeq_set_maximum REDA_Sequence_set_maximum
1473 #define DDS_UntypedSampleSeq_get_length REDA_Sequence_get_length
1474 #define DDS_UntypedSampleSeq_set_length REDA_Sequence_set_length
1475 #define DDS_UntypedSampleSeq_get_reference REDA_Sequence_get_reference
1476 #define DDS_UntypedSampleSeq_copy REDA_Sequence_copy
1477 #define DDS_UntypedSampleSeq_is_equal REDA_Sequence_is_equal
1478 #define DDS_UntypedSampleSeq_loan_contiguous REDA_Sequence_loan_contiguous
1479 #define DDS_UntypedSampleSeq_loan_discontiguous REDA_Sequence_loan_discontiguous
1480 #define DDS_UntypedSampleSeq_unloan REDA_Sequence_unloan
1481 #define DDS_UntypedSampleSeq_has_ownership REDA_Sequence_has_ownership
1482 #define DDS_UntypedSampleSeq_get_buffer REDA_Sequence_get_buffer
1483 #define DDS_UntypedSampleSeq_set_buffer REDA_Sequence_set_buffer
1484 #define DDS_UntypedSampleSeq_has_discontiguous_buffer REDA_Sequence_has_discontiguous_buffer
1485 #define DDS_UntypedSampleSeq_get_token REDA_Sequence_get_token
1486 #define DDS_UntypedSampleSeq_set_token REDA_Sequence_set_token
1494 struct DDS_UntypedSampleSeq *received_data,
1506 struct DDS_UntypedSampleSeq *received_data,
1518 void *received_data,
1526 void *received_data,
1534 struct DDS_UntypedSampleSeq *received_data,
1547 struct DDS_UntypedSampleSeq *received_data,
1561 struct DDS_UntypedSampleSeq *received_data,
1568 const void *key_holder);
1573 DDS_DataReader_liveliness_lost(
1581 struct NETIO_Address *src_writer,
1582 struct NETIO_Address *from_address);
1588 struct NETIO_Address *src_writer,
1589 struct NETIO_Address *from_address);