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
826 struct DDS_TypeSupportQosPolicy type_support;
842 struct RTI_ManagementQosPolicy management;
846 struct DDS_DataReaderData *data;
890 #define DDS_DataReaderQos_INITIALIZER { \
891 DDS_DEADLINE_QOS_POLICY_DEFAULT, \
892 DDS_LIVELINESS_QOS_POLICY_DEFAULT, \
893 DDS_HISTORY_QOS_POLICY_DEFAULT, \
894 DDS_RESOURCE_LIMITS_QOS_POLICY_DEFAULT, \
895 DDS_OWNERSHIP_QOS_POLICY_DEFAULT, \
896 DDS_RELIABILITY_QOS_POLICY_DEFAULT, \
897 DDS_DURABILITY_QOS_POLICY_DEFAULT, \
898 DDS_TYPESUPPORT_QOS_POLICY_DEFAULT, \
899 DDS_DATA_READER_PROTOCOL_QOS_POLICY_DEFAULT, \
900 DDS_TRANSPORT_QOS_POLICY_DEFAULT, \
901 DDS_DATAREADERRESOURCE_LIMITS_QOS_POLICY_DEFAULT, \
902 RTI_MANAGEMENT_QOS_POLICY_DEFAULT, \
924 struct RTI_ManagementQosPolicy management;
968 #define DDS_SubscriberQos_INITIALIZER { \
969 DDS_ENTITY_FACTORY_QOS_POLICY_DEFAULT, \
970 RTI_MANAGEMENT_QOS_POLICY_DEFAULT \
1007 void *listener_data,
1015 void *listener_data,
1023 void *listener_data,
1030 void *listener_data,
1038 void *listener_data,
1046 void *listener_data,
1050 #if DOXYGEN_DOCUMENTATION_ONLY
1055 void *listener_data,
1058 struct CDR_Stream_t *stream,
1062 FUNCTION_MUST_TYPEDEF(
1065 void *listener_data,
1068 struct CDR_Stream_t *stream,
1073 #if DOXYGEN_DOCUMENTATION_ONLY
1078 void *listener_data,
1080 const void *
const sample,
1084 FUNCTION_MUST_TYPEDEF(
1087 void *listener_data,
1089 const void *
const sample,
1160 #define DDS_DataReaderListener_INITIALIZER \
1162 DDS_Listener_INITIALIZER, \
1163 (DDS_DataReaderListener_RequestedDeadlineMissedCallback)NULL, \
1164 (DDS_DataReaderListener_RequestedIncompatibleQosCallback)NULL, \
1165 (DDS_DataReaderListener_SampleRejectedCallback)NULL, \
1166 (DDS_DataReaderListener_LivelinessChangedCallback)NULL, \
1167 (DDS_DataReaderListener_DataAvailableCallback)NULL, \
1168 (DDS_DataReaderListener_SubscriptionMatchedCallback)NULL, \
1169 (DDS_DataReaderListener_SampleLostCallback)NULL,\
1170 (DDS_DataReaderListener_BeforeSampleDeserializeCallback)NULL,\
1171 (DDS_DataReaderListener_BeforeSampleCommitCallback)NULL,\
1172 (DDS_DataReaderListener_InstanceReplacedCallback)NULL\
1207 #define DDS_SubscriberListener_INITIALIZER \
1208 { DDS_DataReaderListener_INITIALIZER, \
1209 (DDS_SubscriberListener_DataOnReadersCallback)NULL }
1226 #define DDS_Subscriber_as_entity(subscriberPtr) \
1227 ((DDS_Entity*) subscriberPtr)
1230 #ifdef DOXYGEN_DOCUMENTATION_ONLY
1297 const char *topic_name);
1346 #define DDS_DataReader_as_entity(dataReaderPtr) \
1347 ((DDS_Entity*) dataReaderPtr)
1350 #ifdef DOXYGEN_DOCUMENTATION_ONLY
1364 #if INCLUDE_API_LOOKUP
1370 struct DDS_InstanceHandleSeq *publication_handles);
1375 #if INCLUDE_API_LOOKUP
1523 #define DDS_UntypedSampleSeq REDA_Sequence
1524 #define DDS_UntypedSampleSeq_initialize REDA_Sequence_initialize
1526 #define DDS_UntypedSampleSeq_finalize REDA_Sequence_finalize
1528 #define DDS_UntypedSampleSeq_get_maximum REDA_Sequence_get_maximum
1529 #define DDS_UntypedSampleSeq_set_maximum REDA_Sequence_set_maximum
1530 #define DDS_UntypedSampleSeq_get_length REDA_Sequence_get_length
1531 #define DDS_UntypedSampleSeq_set_length REDA_Sequence_set_length
1532 #define DDS_UntypedSampleSeq_get_reference REDA_Sequence_get_reference
1533 #define DDS_UntypedSampleSeq_copy REDA_Sequence_copy
1534 #define DDS_UntypedSampleSeq_is_equal REDA_Sequence_is_equal
1535 #define DDS_UntypedSampleSeq_loan_contiguous REDA_Sequence_loan_contiguous
1536 #define DDS_UntypedSampleSeq_loan_discontiguous REDA_Sequence_loan_discontiguous
1537 #define DDS_UntypedSampleSeq_unloan REDA_Sequence_unloan
1538 #define DDS_UntypedSampleSeq_has_ownership REDA_Sequence_has_ownership
1539 #define DDS_UntypedSampleSeq_get_contiguous_buffer REDA_Sequence_get_buffer
1540 #define DDS_UntypedSampleSeq_set_contiguous_buffer REDA_Sequence_set_buffer
1541 #define DDS_UntypedSampleSeq_has_discontiguous_buffer REDA_Sequence_has_discontiguous_buffer
1542 #define DDS_UntypedSampleSeq_get_token REDA_Sequence_get_token
1543 #define DDS_UntypedSampleSeq_set_token REDA_Sequence_set_token
1551 struct DDS_UntypedSampleSeq *received_data,
1563 struct DDS_UntypedSampleSeq *received_data,
1575 void *received_data,
1583 void *received_data,
1591 struct DDS_UntypedSampleSeq *received_data,
1604 struct DDS_UntypedSampleSeq *received_data,
1618 struct DDS_UntypedSampleSeq *received_data,
1625 const void *key_holder);
1660 struct NETIO_Address *src_writer,
1661 struct NETIO_Address *from_address);
1682 struct NETIO_Address *src_writer,
1683 struct NETIO_Address *from_address);