40 #ifndef dds_c_subscription_h
41 #define dds_c_subscription_h
67 NETIODllVariable
extern
68 const char*
const DDS_DEFAULT_DATAREADER_NETIO_NAME;
116 #define DDS_RequestedDeadlineMissedStatus_INITIALIZER \
117 { 0L, 0L, DDS_HANDLE_NIL_NATIVE }
162 #define DDS_LivelinessChangedStatus_INITIALIZER { 0L, 0L, 0L, 0L, \
163 DDS_HANDLE_NIL_NATIVE }
195 struct DDS_QosPolicyCountSeq policies;
202 #define DDS_RequestedIncompatibleQosStatus_INITIALIZER \
203 { 0L, 0L, DDS_INVALID_QOS_POLICY_ID, DDS_SEQUENCE_INITIALIZER }
247 #define DDS_REJECTED_BY_INSTANCE_LIMIT DDS_REJECTED_BY_INSTANCES_LIMIT
279 #define DDS_SampleRejectedStatus_INITIALIZER \
280 { 0L, 0L, DDS_NOT_REJECTED,DDS_HANDLE_NIL_NATIVE }
327 #define DDS_DataReaderInstanceReplacedStatus_INITIALIZER \
328 { 0L, 0L, DDS_HANDLE_NIL_NATIVE, \
329 DDS_HANDLE_NIL_NATIVE, DDS_HANDLE_NIL_NATIVE, 0L }
372 #define DDS_SubscriptionMatchedStatus_INITIALIZER \
373 { 0L, 0L, 0L, 0L, DDS_HANDLE_NIL_NATIVE}
392 DDS_RequestedDeadlineMissedStatus_initialize(
404 DDS_RequestedIncompatibleQosStatus_initialize(
429 DDS_SampleRejectedStatus_initialize(
441 DDS_SubscriptionMatchedStatus_initialize(
453 DDS_LivelinessChangedStatus_initialize(
465 DDS_DataReaderInstanceReplacedStatus_initialize(
612 #if DDS_INCLUDE_SAMPLE_INFO_RANKS
615 DDS_Byte disposed_generation_count;
619 DDS_Byte no_writers_generation_count;
623 DDS_Byte sample_rank;
627 DDS_Byte generation_rank;
631 DDS_Byte absolute_generation_rank;
651 #if DDS_INCLUDE_SAMPLE_INFO_RANKS
652 #define DDS_SampleInfo_INITIALIZE_RANKS 0,0,0,0,0,
654 #define DDS_SampleInfo_INITIALIZE_RANKS
660 #define DDS_SampleInfo_INITIALIZER \
662 DDS_NOT_READ_SAMPLE_STATE,\
664 DDS_ALIVE_INSTANCE_STATE,\
665 {0,0},DDS_HANDLE_NIL_NATIVE,\
666 DDS_HANDLE_NIL_NATIVE, \
667 DDS_SampleInfo_INITIALIZE_RANKS \
669 REDA_SEQUENCE_NUMBER_ZERO,\
677 #define T struct DDS_SampleInfo
678 #define TSeq DDS_SampleInfoSeq
679 #define REDA_SEQUENCE_API REDA_SEQUENCE_API_FULL
680 #include <reda/reda_sequence_decl.h>
686 #ifdef DOXYGEN_DOCUMENTATION_ONLY
755 #define DDS_SampleLostStatus_INITIALIZER \
757 0L, 0L,DDS_SAMPLE_LOST_NOT_LOST,DDS_SampleInfo_INITIALIZER \
778 struct DDS_DataReaderData
830 struct DDS_TypeSupportQosPolicy type_support;
846 struct RTI_ManagementQosPolicy management;
850 struct DDS_DataReaderData *data;
894 #define DDS_DataReaderQos_INITIALIZER { \
895 DDS_DEADLINE_QOS_POLICY_DEFAULT, \
896 DDS_LIVELINESS_QOS_POLICY_DEFAULT, \
897 DDS_HISTORY_QOS_POLICY_DEFAULT, \
898 DDS_RESOURCE_LIMITS_QOS_POLICY_DEFAULT, \
899 DDS_OWNERSHIP_QOS_POLICY_DEFAULT, \
900 DDS_RELIABILITY_QOS_POLICY_DEFAULT, \
901 DDS_DURABILITY_QOS_POLICY_DEFAULT, \
902 DDS_DESTINATION_ORDER_QOS_POLICY_DEFAULT, \
903 DDS_TYPESUPPORT_QOS_POLICY_DEFAULT, \
904 DDS_DATA_READER_PROTOCOL_QOS_POLICY_DEFAULT, \
905 DDS_TRANSPORT_QOS_POLICY_DEFAULT, \
906 DDS_DATAREADERRESOURCE_LIMITS_QOS_POLICY_DEFAULT, \
907 RTI_MANAGEMENT_QOS_POLICY_DEFAULT, \
929 struct RTI_ManagementQosPolicy management;
973 #define DDS_SubscriberQos_INITIALIZER { \
974 DDS_ENTITY_FACTORY_QOS_POLICY_DEFAULT, \
975 RTI_MANAGEMENT_QOS_POLICY_DEFAULT \
1004 void *listener_data,
1012 void *listener_data,
1020 void *listener_data,
1028 void *listener_data,
1035 void *listener_data,
1043 void *listener_data,
1051 void *listener_data,
1055 #if DOXYGEN_DOCUMENTATION_ONLY
1060 void *listener_data,
1063 struct CDR_Stream_t *stream,
1067 FUNCTION_MUST_TYPEDEF(
1070 void *listener_data,
1073 struct CDR_Stream_t *stream,
1078 #if DOXYGEN_DOCUMENTATION_ONLY
1083 void *listener_data,
1085 const void *
const sample,
1089 FUNCTION_MUST_TYPEDEF(
1092 void *listener_data,
1094 const void *
const sample,
1165 #define DDS_DataReaderListener_INITIALIZER \
1167 DDS_Listener_INITIALIZER, \
1168 (DDS_DataReaderListener_RequestedDeadlineMissedCallback)NULL, \
1169 (DDS_DataReaderListener_RequestedIncompatibleQosCallback)NULL, \
1170 (DDS_DataReaderListener_SampleRejectedCallback)NULL, \
1171 (DDS_DataReaderListener_LivelinessChangedCallback)NULL, \
1172 (DDS_DataReaderListener_DataAvailableCallback)NULL, \
1173 (DDS_DataReaderListener_SubscriptionMatchedCallback)NULL, \
1174 (DDS_DataReaderListener_SampleLostCallback)NULL,\
1175 (DDS_DataReaderListener_BeforeSampleDeserializeCallback)NULL,\
1176 (DDS_DataReaderListener_BeforeSampleCommitCallback)NULL,\
1177 (DDS_DataReaderListener_InstanceReplacedCallback)NULL\
1212 #define DDS_SubscriberListener_INITIALIZER \
1213 { DDS_DataReaderListener_INITIALIZER, \
1214 (DDS_SubscriberListener_DataOnReadersCallback)NULL }
1231 #define DDS_Subscriber_as_entity(subscriberPtr) \
1232 ((DDS_Entity*) subscriberPtr)
1235 #ifdef DOXYGEN_DOCUMENTATION_ONLY
1302 const char *topic_name);
1351 #define DDS_DataReader_as_entity(dataReaderPtr) \
1352 ((DDS_Entity*) dataReaderPtr)
1355 #ifdef DOXYGEN_DOCUMENTATION_ONLY
1369 #if INCLUDE_API_LOOKUP
1375 struct DDS_InstanceHandleSeq *publication_handles);
1380 #if INCLUDE_API_LOOKUP
1528 #define DDS_UntypedSampleSeq REDA_Sequence
1529 #define DDS_UntypedSampleSeq_initialize REDA_Sequence_initialize
1531 #define DDS_UntypedSampleSeq_finalize REDA_Sequence_finalize
1533 #define DDS_UntypedSampleSeq_get_maximum REDA_Sequence_get_maximum
1534 #define DDS_UntypedSampleSeq_set_maximum REDA_Sequence_set_maximum
1535 #define DDS_UntypedSampleSeq_get_length REDA_Sequence_get_length
1536 #define DDS_UntypedSampleSeq_set_length REDA_Sequence_set_length
1537 #define DDS_UntypedSampleSeq_get_reference REDA_Sequence_get_reference
1538 #define DDS_UntypedSampleSeq_copy REDA_Sequence_copy
1539 #define DDS_UntypedSampleSeq_is_equal REDA_Sequence_is_equal
1540 #define DDS_UntypedSampleSeq_loan_contiguous REDA_Sequence_loan_contiguous
1541 #define DDS_UntypedSampleSeq_loan_discontiguous REDA_Sequence_loan_discontiguous
1542 #define DDS_UntypedSampleSeq_unloan REDA_Sequence_unloan
1543 #define DDS_UntypedSampleSeq_has_ownership REDA_Sequence_has_ownership
1544 #define DDS_UntypedSampleSeq_get_contiguous_buffer REDA_Sequence_get_buffer
1545 #define DDS_UntypedSampleSeq_set_contiguous_buffer REDA_Sequence_set_buffer
1546 #define DDS_UntypedSampleSeq_has_discontiguous_buffer REDA_Sequence_has_discontiguous_buffer
1547 #define DDS_UntypedSampleSeq_get_token REDA_Sequence_get_token
1548 #define DDS_UntypedSampleSeq_set_token REDA_Sequence_set_token
1556 struct DDS_UntypedSampleSeq *received_data,
1568 struct DDS_UntypedSampleSeq *received_data,
1580 void *received_data,
1588 void *received_data,
1596 struct DDS_UntypedSampleSeq *received_data,
1609 struct DDS_UntypedSampleSeq *received_data,
1623 struct DDS_UntypedSampleSeq *received_data,
1630 const void *key_holder);
1665 struct NETIO_Address *src_writer,
1666 struct NETIO_Address *from_address);
1687 struct NETIO_Address *src_writer,
1688 struct NETIO_Address *from_address);
1698 RTI_BOOL *route_existed);
1705 RTI_BOOL *route_existed);