39 #ifndef dds_c_subscription_h
40 #define dds_c_subscription_h
66 NETIODllVariable
extern
67 const char*
const DDS_DEFAULT_DATAREADER_NETIO_NAME;
115 #define DDS_RequestedDeadlineMissedStatus_INITIALIZER \
116 { 0L, 0L, DDS_HANDLE_NIL_NATIVE }
161 #define DDS_LivelinessChangedStatus_INITIALIZER { 0L, 0L, 0L, 0L, \
162 DDS_HANDLE_NIL_NATIVE }
194 struct DDS_QosPolicyCountSeq policies;
201 #define DDS_RequestedIncompatibleQosStatus_INITIALIZER \
202 { 0L, 0L, DDS_INVALID_QOS_POLICY_ID, DDS_SEQUENCE_INITIALIZER }
246 #define DDS_REJECTED_BY_INSTANCE_LIMIT DDS_REJECTED_BY_INSTANCES_LIMIT
278 #define DDS_SampleRejectedStatus_INITIALIZER \
279 { 0L, 0L, DDS_NOT_REJECTED,DDS_HANDLE_NIL_NATIVE }
326 #define DDS_DataReaderInstanceReplacedStatus_INITIALIZER \
327 { 0L, 0L, DDS_HANDLE_NIL_NATIVE, \
328 DDS_HANDLE_NIL_NATIVE, DDS_HANDLE_NIL_NATIVE, 0L }
371 #define DDS_SubscriptionMatchedStatus_INITIALIZER \
372 { 0L, 0L, 0L, 0L, DDS_HANDLE_NIL_NATIVE}
391 DDS_RequestedDeadlineMissedStatus_initialize(
403 DDS_RequestedIncompatibleQosStatus_initialize(
428 DDS_SampleRejectedStatus_initialize(
440 DDS_SubscriptionMatchedStatus_initialize(
452 DDS_LivelinessChangedStatus_initialize(
464 DDS_DataReaderInstanceReplacedStatus_initialize(
611 #if DDS_INCLUDE_SAMPLE_INFO_RANKS
614 DDS_Byte disposed_generation_count;
618 DDS_Byte no_writers_generation_count;
622 DDS_Byte sample_rank;
626 DDS_Byte generation_rank;
630 DDS_Byte absolute_generation_rank;
650 #if DDS_INCLUDE_SAMPLE_INFO_RANKS
651 #define DDS_SampleInfo_INITIALIZE_RANKS 0,0,0,0,0,
653 #define DDS_SampleInfo_INITIALIZE_RANKS
659 #define DDS_SampleInfo_INITIALIZER \
661 DDS_NOT_READ_SAMPLE_STATE,\
663 DDS_ALIVE_INSTANCE_STATE,\
664 {0,0},DDS_HANDLE_NIL_NATIVE,\
665 DDS_HANDLE_NIL_NATIVE, \
666 DDS_SampleInfo_INITIALIZE_RANKS \
668 REDA_SEQUENCE_NUMBER_ZERO,\
676 #define T struct DDS_SampleInfo
677 #define TSeq DDS_SampleInfoSeq
678 #define REDA_SEQUENCE_API REDA_SEQUENCE_API_FULL
679 #include <reda/reda_sequence_decl.h>
685 #ifdef DOXYGEN_DOCUMENTATION_ONLY
754 #define DDS_SampleLostStatus_INITIALIZER \
756 0L, 0L,DDS_SAMPLE_LOST_NOT_LOST,DDS_SampleInfo_INITIALIZER \
777 struct DDS_DataReaderData
825 struct DDS_TypeSupportQosPolicy type_support;
841 struct RTI_ManagementQosPolicy management;
845 struct DDS_DataReaderData *data;
889 #define DDS_DataReaderQos_INITIALIZER { \
890 DDS_DEADLINE_QOS_POLICY_DEFAULT, \
891 DDS_LIVELINESS_QOS_POLICY_DEFAULT, \
892 DDS_HISTORY_QOS_POLICY_DEFAULT, \
893 DDS_RESOURCE_LIMITS_QOS_POLICY_DEFAULT, \
894 DDS_OWNERSHIP_QOS_POLICY_DEFAULT, \
895 DDS_RELIABILITY_QOS_POLICY_DEFAULT, \
896 DDS_DURABILITY_QOS_POLICY_DEFAULT, \
897 DDS_TYPESUPPORT_QOS_POLICY_DEFAULT, \
898 DDS_DATA_READER_PROTOCOL_QOS_POLICY_DEFAULT, \
899 DDS_TRANSPORT_QOS_POLICY_DEFAULT, \
900 DDS_DATAREADERRESOURCE_LIMITS_QOS_POLICY_DEFAULT, \
901 RTI_MANAGEMENT_QOS_POLICY_DEFAULT, \
923 struct RTI_ManagementQosPolicy management;
967 #define DDS_SubscriberQos_INITIALIZER { \
968 DDS_ENTITY_FACTORY_QOS_POLICY_DEFAULT, \
969 RTI_MANAGEMENT_QOS_POLICY_DEFAULT \
1006 void *listener_data,
1014 void *listener_data,
1022 void *listener_data,
1029 void *listener_data,
1037 void *listener_data,
1045 void *listener_data,
1049 #if DOXYGEN_DOCUMENTATION_ONLY
1054 void *listener_data,
1057 struct CDR_Stream_t *stream,
1061 FUNCTION_MUST_TYPEDEF(
1064 void *listener_data,
1067 struct CDR_Stream_t *stream,
1072 #if DOXYGEN_DOCUMENTATION_ONLY
1077 void *listener_data,
1079 const void *
const sample,
1083 FUNCTION_MUST_TYPEDEF(
1086 void *listener_data,
1088 const void *
const sample,
1159 #define DDS_DataReaderListener_INITIALIZER \
1161 DDS_Listener_INITIALIZER, \
1162 (DDS_DataReaderListener_RequestedDeadlineMissedCallback)NULL, \
1163 (DDS_DataReaderListener_RequestedIncompatibleQosCallback)NULL, \
1164 (DDS_DataReaderListener_SampleRejectedCallback)NULL, \
1165 (DDS_DataReaderListener_LivelinessChangedCallback)NULL, \
1166 (DDS_DataReaderListener_DataAvailableCallback)NULL, \
1167 (DDS_DataReaderListener_SubscriptionMatchedCallback)NULL, \
1168 (DDS_DataReaderListener_SampleLostCallback)NULL,\
1169 (DDS_DataReaderListener_BeforeSampleDeserializeCallback)NULL,\
1170 (DDS_DataReaderListener_BeforeSampleCommitCallback)NULL,\
1171 (DDS_DataReaderListener_InstanceReplacedCallback)NULL\
1206 #define DDS_SubscriberListener_INITIALIZER \
1207 { DDS_DataReaderListener_INITIALIZER, \
1208 (DDS_SubscriberListener_DataOnReadersCallback)NULL }
1225 #define DDS_Subscriber_as_entity(subscriberPtr) \
1226 ((DDS_Entity*) subscriberPtr)
1229 #ifdef DOXYGEN_DOCUMENTATION_ONLY
1296 const char *topic_name);
1345 #define DDS_DataReader_as_entity(dataReaderPtr) \
1346 ((DDS_Entity*) dataReaderPtr)
1349 #ifdef DOXYGEN_DOCUMENTATION_ONLY
1363 #if INCLUDE_API_LOOKUP
1369 struct DDS_InstanceHandleSeq *publication_handles);
1374 #if INCLUDE_API_LOOKUP
1522 #define DDS_UntypedSampleSeq REDA_Sequence
1523 #define DDS_UntypedSampleSeq_initialize REDA_Sequence_initialize
1525 #define DDS_UntypedSampleSeq_finalize REDA_Sequence_finalize
1527 #define DDS_UntypedSampleSeq_get_maximum REDA_Sequence_get_maximum
1528 #define DDS_UntypedSampleSeq_set_maximum REDA_Sequence_set_maximum
1529 #define DDS_UntypedSampleSeq_get_length REDA_Sequence_get_length
1530 #define DDS_UntypedSampleSeq_set_length REDA_Sequence_set_length
1531 #define DDS_UntypedSampleSeq_get_reference REDA_Sequence_get_reference
1532 #define DDS_UntypedSampleSeq_copy REDA_Sequence_copy
1533 #define DDS_UntypedSampleSeq_is_equal REDA_Sequence_is_equal
1534 #define DDS_UntypedSampleSeq_loan_contiguous REDA_Sequence_loan_contiguous
1535 #define DDS_UntypedSampleSeq_loan_discontiguous REDA_Sequence_loan_discontiguous
1536 #define DDS_UntypedSampleSeq_unloan REDA_Sequence_unloan
1537 #define DDS_UntypedSampleSeq_has_ownership REDA_Sequence_has_ownership
1538 #define DDS_UntypedSampleSeq_get_contiguous_buffer REDA_Sequence_get_buffer
1539 #define DDS_UntypedSampleSeq_set_contiguous_buffer REDA_Sequence_set_buffer
1540 #define DDS_UntypedSampleSeq_has_discontiguous_buffer REDA_Sequence_has_discontiguous_buffer
1541 #define DDS_UntypedSampleSeq_get_token REDA_Sequence_get_token
1542 #define DDS_UntypedSampleSeq_set_token REDA_Sequence_set_token
1550 struct DDS_UntypedSampleSeq *received_data,
1562 struct DDS_UntypedSampleSeq *received_data,
1574 void *received_data,
1582 void *received_data,
1590 struct DDS_UntypedSampleSeq *received_data,
1603 struct DDS_UntypedSampleSeq *received_data,
1617 struct DDS_UntypedSampleSeq *received_data,
1624 const void *key_holder);
1659 struct NETIO_Address *src_writer,
1660 struct NETIO_Address *from_address);
1681 struct NETIO_Address *src_writer,
1682 struct NETIO_Address *from_address);