34 #ifndef dds_c_subscription_h
35 #define dds_c_subscription_h
102 #define DDS_RequestedDeadlineMissedStatus_INITIALIZER \
103 { 0L, 0L, DDS_HANDLE_NIL_NATIVE }
145 #define DDS_LivelinessChangedStatus_INITIALIZER { 0L, 0L, 0L, 0L, \
146 DDS_HANDLE_NIL_NATIVE }
175 struct DDS_QosPolicyCountSeq policies;
182 #define DDS_RequestedIncompatibleQosStatus_INITIALIZER \
183 { 0L, 0L, DDS_INVALID_QOS_POLICY_ID, DDS_SEQUENCE_INITIALIZER(struct DDS_QosPolicyCount) }
228 #define DDS_REJECTED_BY_INSTANCE_LIMIT DDS_REJECTED_BY_INSTANCES_LIMIT
260 #define DDS_SampleRejectedStatus_INITIALIZER \
261 { 0L, 0L, DDS_NOT_REJECTED,DDS_HANDLE_NIL_NATIVE }
305 #define DDS_DataReaderInstanceReplacedStatus_INITIALIZER \
306 { 0L, 0L, DDS_HANDLE_NIL_NATIVE, \
307 DDS_HANDLE_NIL_NATIVE, DDS_HANDLE_NIL_NATIVE, 0L }
347 #define DDS_SubscriptionMatchedStatus_INITIALIZER \
348 { 0L, 0L, 0L, 0L, DDS_HANDLE_NIL_NATIVE}
358 DDS_RequestedDeadlineMissedStatus_initialize(
364 DDS_RequestedIncompatibleQosStatus_initialize(
372 DDS_SampleLostStatus_initialize(
378 DDS_SampleRejectedStatus_initialize(
384 DDS_SubscriptionMatchedStatus_initialize(
390 DDS_LivelinessChangedStatus_initialize(
396 DDS_DataReaderInstanceReplacedStatus_initialize(
549 DDS_Long no_writers_generation_count;
584 #define DDS_SampleInfo_INITIALIZER \
586 DDS_NOT_READ_SAMPLE_STATE,\
588 DDS_ALIVE_INSTANCE_STATE,\
589 {0,0},DDS_HANDLE_NIL_NATIVE,\
590 DDS_HANDLE_NIL_NATIVE,0,0,0,0,0,RTI_FALSE,{0,0},\
591 REDA_SEQUENCE_NUMBER_ZERO,\
592 REDA_SEQUENCE_NUMBER_ZERO,\
600 #define REDA_SEQUENCE_API REDA_SEQUENCE_API_FULL
601 #define T struct DDS_SampleInfo
602 #define TSeq DDS_SampleInfoSeq
603 #include <reda/reda_sequence_decl.h>
609 #ifdef DOXYGEN_DOCUMENTATION_ONLY
678 #define DDS_SampleLostStatus_INITIALIZER \
680 0L, 0L,DDS_SAMPLE_LOST_NOT_LOST,DDS_SampleInfo_INITIALIZER \
698 struct DDS_DataReaderData
739 struct DDS_TypeSupportQosPolicy type_support;
755 struct RTI_ManagementQosPolicy management;
759 struct DDS_DataReaderData *data;
795 #define DDS_DataReaderQos_INITIALIZER { \
796 DDS_DEADLINE_QOS_POLICY_DEFAULT, \
797 DDS_LIVELINESS_QOS_POLICY_DEFAULT, \
798 DDS_HISTORY_QOS_POLICY_DEFAULT, \
799 DDS_RESOURCE_LIMITS_QOS_POLICY_DEFAULT, \
800 DDS_OWNERSHIP_QOS_POLICY_DEFAULT, \
801 DDS_RELIABILITY_QOS_POLICY_DEFAULT, \
802 DDS_DURABILITY_QOS_POLICY_DEFAULT, \
803 DDS_TYPESUPPORT_QOS_POLICY_DEFAULT, \
804 DDS_DATA_READER_PROTOCOL_QOS_POLICY_DEFAULT, \
805 DDS_TRANSPORT_QOS_POLICY_DEFAULT, \
806 DDS_DATAREADERRESOURCE_LIMITS_QOS_POLICY_DEFAULT, \
807 RTI_MANAGEMENT_QOS_POLICY_DEFAULT, \
829 struct RTI_ManagementQosPolicy management;
854 DDS_SubscriberQos_is_equal(
867 #define DDS_SubscriberQos_INITIALIZER { \
868 DDS_ENTITY_FACTORY_QOS_POLICY_DEFAULT, \
869 RTI_MANAGEMENT_QOS_POLICY_DEFAULT \
949 #if DOXYGEN_DOCUMENTATION_ONLY
957 struct CDR_Stream_t *stream,
961 FUNCTION_MUST_TYPEDEF(
967 struct CDR_Stream_t *stream,
972 #if DOXYGEN_DOCUMENTATION_ONLY
979 const void *
const sample,
983 FUNCTION_MUST_TYPEDEF(
988 const void *
const sample,
1059 #define DDS_DataReaderListener_INITIALIZER \
1061 DDS_Listener_INITIALIZER, \
1062 (DDS_DataReaderListener_RequestedDeadlineMissedCallback)NULL, \
1063 (DDS_DataReaderListener_RequestedIncompatibleQosCallback)NULL, \
1064 (DDS_DataReaderListener_SampleRejectedCallback)NULL, \
1065 (DDS_DataReaderListener_LivelinessChangedCallback)NULL, \
1066 (DDS_DataReaderListener_DataAvailableCallback)NULL, \
1067 (DDS_DataReaderListener_SubscriptionMatchedCallback)NULL, \
1068 (DDS_DataReaderListener_SampleLostCallback)NULL,\
1069 (DDS_DataReaderListener_BeforeSampleDeserializeCallback)NULL,\
1070 (DDS_DataReaderListener_BeforeSampleCommitCallback)NULL,\
1071 (DDS_DataReaderListener_InstanceReplacedCallback)NULL\
1106 #define DDS_SubscriberListener_INITIALIZER \
1107 { DDS_DataReaderListener_INITIALIZER, \
1108 (DDS_SubscriberListener_DataOnReadersCallback)NULL }
1125 #define DDS_Subscriber_as_entity(subscriberPtr) \
1126 ((DDS_Entity*) subscriberPtr)
1129 #ifdef DOXYGEN_DOCUMENTATION_ONLY
1196 const char *topic_name);
1245 #define DDS_DataReader_as_entity(dataReaderPtr) \
1246 ((DDS_Entity*) dataReaderPtr)
1249 #ifdef DOXYGEN_DOCUMENTATION_ONLY
1263 #if INCLUDE_API_LOOKUP
1267 DDS_DataReader_get_matched_publications(
1269 struct DDS_InstanceHandleSeq *publication_handles);
1274 #if INCLUDE_API_LOOKUP
1278 DDS_DataReader_get_matched_publication_data(
1406 struct NDDS_Subscriber_Properties
1413 #define NDDS_Subscriber_Properties_INITIALIZER { \
1422 struct NDDS_DataReader_Properties
1429 #define NDDS_DataReader_Properties_INITIALIZER {0}
1442 #define DDS_UntypedSampleSeq REDA_Sequence
1443 #define DDS_UntypedSampleSeq_initialize REDA_Sequence_initialize
1445 #define DDS_UntypedSampleSeq_finalize REDA_Sequence_finalize
1447 #define DDS_UntypedSampleSeq_get_maximum REDA_Sequence_get_maximum
1448 #define DDS_UntypedSampleSeq_set_maximum REDA_Sequence_set_maximum
1449 #define DDS_UntypedSampleSeq_get_length REDA_Sequence_get_length
1450 #define DDS_UntypedSampleSeq_set_length REDA_Sequence_set_length
1451 #define DDS_UntypedSampleSeq_get_reference REDA_Sequence_get_reference
1452 #define DDS_UntypedSampleSeq_copy REDA_Sequence_copy
1453 #define DDS_UntypedSampleSeq_is_equal REDA_Sequence_is_equal
1454 #define DDS_UntypedSampleSeq_loan_contiguous REDA_Sequence_loan_contiguous
1455 #define DDS_UntypedSampleSeq_loan_discontiguous REDA_Sequence_loan_discontiguous
1456 #define DDS_UntypedSampleSeq_unloan REDA_Sequence_unloan
1457 #define DDS_UntypedSampleSeq_has_ownership REDA_Sequence_has_ownership
1458 #define DDS_UntypedSampleSeq_get_buffer REDA_Sequence_get_buffer
1459 #define DDS_UntypedSampleSeq_set_buffer REDA_Sequence_set_buffer
1460 #define DDS_UntypedSampleSeq_has_discontiguous_buffer REDA_Sequence_has_discontiguous_buffer
1461 #define DDS_UntypedSampleSeq_get_token REDA_Sequence_get_token
1462 #define DDS_UntypedSampleSeq_set_token REDA_Sequence_set_token
1470 struct DDS_UntypedSampleSeq *received_data,
1482 struct DDS_UntypedSampleSeq *received_data,
1494 void *received_data,
1502 void *received_data,
1510 struct DDS_UntypedSampleSeq *received_data,
1523 struct DDS_UntypedSampleSeq *received_data,
1537 struct DDS_UntypedSampleSeq *received_data,
1544 const void *key_holder);
1550 DDS_DataReader_liveliness_lost(
1559 struct NETIO_Address *src_writer,
1560 struct NETIO_Address *from_address);
1567 struct NETIO_Address *src_writer,
1568 struct NETIO_Address *from_address);