28 #ifndef dds_c_discovery_plugin_h
29 #define dds_c_discovery_plugin_h
34 #ifndef dds_c_common_h
37 #ifndef dds_c_domain_h
49 extern DDSCDllVariable
const char *
const DDS_PARTICIPANT_BUILTIN_TOPIC_TYPE_NAME;
54 extern DDSCDllVariable
const char *
const DDS_PARTICIPANT_BUILTIN_TOPIC_NAME;
59 extern DDSCDllVariable
const char *
const DDS_PUBLICATION_BUILTIN_TOPIC_TYPE_NAME;
64 extern DDSCDllVariable
const char *
const DDS_PUBLICATION_BUILTIN_TOPIC_NAME;
69 extern DDSCDllVariable
const char *
const DDS_SUBSCRIPTION_BUILTIN_TOPIC_TYPE_NAME;
74 extern DDSCDllVariable
const char *
const DDS_SUBSCRIPTION_BUILTIN_TOPIC_NAME;
79 #define DDS_PARTICIPANT_TOPIC_NAME DDS_PARTICIPANT_BUILTIN_TOPIC_NAME
84 #define DDS_PUBLICATION_TOPIC_NAME DDS_PUBLICATION_BUILTIN_TOPIC_NAME
89 #define DDS_SUBSCRIPTION_TOPIC_NAME DDS_SUBSCRIPTION_BUILTIN_TOPIC_NAME
94 struct NDDS_Discovery_Plugin
99 struct RT_Component _parent;
105 struct NDDS_Discovery_Listener
110 struct RT_ComponentListener _parent;
117 #define NDDS_Discovery_Listener_INITIALIZE {\
118 RT_ComponentListener_INITIALIZER\
129 #define NDDSDiscovery_narrow(factory_) \
130 (((struct NDDS_Discovery_Plugin*)(factory_))->intf)
141 (*NDDSDiscovery_deleteFunc)(
struct NDDS_Discovery_Plugin *
self);
153 FUNCTION_MUST_TYPEDEF(
154 struct NDDS_Discovery_Plugin*
155 (*NDDS_Discovery_Plugin_createFunc) (
157 const struct NDDS_Discovery_Listener *
const listener)
173 FUNCTION_MUST_TYPEDEF(
175 (*NDDS_Discovery_Plugin_BeforeLocalParticipantCreatedCallback)(
176 struct NDDS_Discovery_Plugin *
const discovery_plugin,
194 FUNCTION_MUST_TYPEDEF(
196 (*NDDS_Discovery_Plugin_AfterLocalParticipantCreatedCallback)(
197 struct NDDS_Discovery_Plugin *
const discovery_plugin,
214 FUNCTION_MUST_TYPEDEF(
216 (*NDDS_Discovery_Plugin_AfterLocalParticipantEnabledCallback)(
217 struct NDDS_Discovery_Plugin*
const discovery_plugin,
234 FUNCTION_MUST_TYPEDEF(
236 (*NDDS_Discovery_Plugin_BeforeLocalParticipantDeletedCallback)(
237 struct NDDS_Discovery_Plugin *
const discovery_plugin,
254 FUNCTION_MUST_TYPEDEF(
256 (*NDDS_Discovery_Plugin_BeforeLocalDataWriterCreatedCallback)(
257 struct NDDS_Discovery_Plugin *
const discovery_plugin,
276 FUNCTION_MUST_TYPEDEF(
278 (*NDDS_Discovery_Plugin_AfterLocalDataWriterEnabledCallback)(
279 struct NDDS_Discovery_Plugin *
const discovery_plugin,
297 FUNCTION_MUST_TYPEDEF(
299 (*NDDS_Discovery_Plugin_AfterLocalDataWriterDeletedCallback)(
300 struct NDDS_Discovery_Plugin *
const discovery_plugin,
317 FUNCTION_MUST_TYPEDEF(
319 (*NDDS_Discovery_Plugin_BeforeLocalDataReaderCreatedCallback)(
320 struct NDDS_Discovery_Plugin *
const discovery_plugin,
339 FUNCTION_MUST_TYPEDEF(
341 (*NDDS_Discovery_Plugin_AfterLocalDataReaderEnabledCallback)(
342 struct NDDS_Discovery_Plugin *
const discovery_plugin,
360 FUNCTION_MUST_TYPEDEF(
362 (*NDDS_Discovery_Plugin_AfterLocalDataReaderDeletedCallback)(
363 struct NDDS_Discovery_Plugin *
const discovery_plugin,
380 FUNCTION_MUST_TYPEDEF(
382 (*NDDS_Discovery_Plugin_RemoteParticipantLivelinessExpiredCallback)(
383 struct NDDS_Discovery_Plugin *
const discovery_plugin,
400 FUNCTION_MUST_TYPEDEF(
402 (*NDDS_Discovery_Plugin_AddPeerFunction)(
403 struct NDDS_Discovery_Plugin *
const discovery_plugin,
418 (*NDDS_Discovery_Plugin_AssertRemoteParticipant)(
419 struct NDDS_Discovery_Plugin *
const discovery_plugin,
421 const char *
const participant_name);
426 struct NDDS_DiscoveryI
431 struct RT_ComponentI _parent;
436 NDDS_Discovery_Plugin_RemoteParticipantLivelinessExpiredCallback
437 on_remote_participant_liveliness_expired;
443 NDDS_Discovery_Plugin_BeforeLocalParticipantCreatedCallback
444 on_before_local_participant_created;
450 NDDS_Discovery_Plugin_AfterLocalParticipantCreatedCallback
451 on_after_local_participant_created;
456 NDDS_Discovery_Plugin_AfterLocalParticipantEnabledCallback
457 on_after_local_participant_enabled;
462 NDDS_Discovery_Plugin_BeforeLocalParticipantDeletedCallback
463 on_before_local_participant_deleted;
468 NDDS_Discovery_Plugin_AfterLocalDataWriterEnabledCallback
469 on_after_local_datawriter_enabled;
474 NDDS_Discovery_Plugin_AfterLocalDataWriterDeletedCallback
475 on_after_local_datawriter_deleted;
480 NDDS_Discovery_Plugin_AfterLocalDataReaderEnabledCallback
481 on_after_local_datareader_enabled;
486 NDDS_Discovery_Plugin_AfterLocalDataReaderDeletedCallback
487 on_after_local_datareader_deleted;
492 NDDS_Discovery_Plugin_AddPeerFunction add_peer;
498 NDDS_Discovery_Plugin_AssertRemoteParticipant on_assert_remote_participant;
503 NDDS_Discovery_Plugin_BeforeLocalDataReaderCreatedCallback
504 on_before_local_datareader_created;
509 NDDS_Discovery_Plugin_BeforeLocalDataWriterCreatedCallback
510 on_before_local_datawriter_created;
522 #define DiscoveryComponentFactory_create_component(f_,p_,l_) \
523 (struct NDDS_Discovery_Plugin*)((f_)->intf)->create_component(f_,p_,l_)
531 #define DiscoveryComponentFactory_delete_component(f_,c_) \
532 ((f_)->intf)->delete_component(f_,(RT_Component_T*)(c_))
550 #define NDDS_Discovery_Plugin_on_before_local_participant_created(\
552 ((struct NDDS_DiscoveryI*)((self_)->_parent._intf))->\
553 on_before_local_participant_created(self_,p_,q_,b_)
569 #define NDDS_Discovery_Plugin_on_after_local_participant_created(\
571 ((struct NDDS_DiscoveryI*)((self_)->_parent._intf))->\
572 on_after_local_participant_created(self_,p_,data_)
588 #define NDDS_Discovery_Plugin_on_after_local_participant_enabled(\
590 ((struct NDDS_DiscoveryI*)((self_)->_parent._intf))->\
591 on_after_local_participant_enabled(self_,p_,data_)
606 #define NDDS_Discovery_Plugin_on_before_local_participant_deleted(\
608 ((struct NDDS_DiscoveryI*)((self_)->_parent._intf))->\
609 on_before_local_participant_deleted(self_,p_,key_)
624 #define NDDS_Discovery_Plugin_on_after_local_datawriter_enabled(\
626 ((struct NDDS_DiscoveryI*)((self_)->_parent._intf))->\
627 on_after_local_datawriter_enabled(self_,p_,dw_,dq_)
641 #define NDDS_Discovery_Plugin_on_after_local_datawriter_deleted(\
643 ((struct NDDS_DiscoveryI*)((self_)->_parent._intf))->\
644 on_after_local_datawriter_deleted(self_,p_,dwkey_)
659 #define NDDS_Discovery_Plugin_on_after_local_datareader_enabled(\
661 ((struct NDDS_DiscoveryI*)((self_)->_parent._intf))->\
662 on_after_local_datareader_enabled(self_,p_,dr_,dq_)
676 #define NDDS_Discovery_Plugin_on_after_local_datareader_deleted(self_,p_,drkey_)\
677 ((struct NDDS_DiscoveryI*)((self_)->_parent._intf))->\
678 on_after_local_datareader_deleted(self_,p_,drkey_)
693 #define NDDS_Discovery_Plugin_on_remote_participant_liveliness_expired(\
695 ((struct NDDS_DiscoveryI*)((self_)->_parent._intf))->\
696 on_remote_participant_liveliness_expired(self_,p_,data_)
711 #define NDDS_Discovery_Plugin_add_peer(\
713 ((struct NDDS_DiscoveryI*)((self_)->_parent._intf))->add_peer(self_,p_,peer_)
728 #define NDDS_Discovery_Plugin_assert_remote_participant(self_,p_,name_) \
729 ((struct NDDS_DiscoveryI*)((self_)->_parent._intf))->on_assert_remote_participant(self_,p_,name_)
743 #define NDDS_Discovery_Plugin_on_before_local_datareader_created(self_,p_,dr_key_,res_) \
744 ((struct NDDS_DiscoveryI*)((self_)->_parent._intf))->on_before_local_datareader_created(self_,p_,dr_key_,res_)
757 #define NDDS_Discovery_Plugin_on_before_local_datawriter_created(self_,p_,dw_key_,res_) \
758 ((struct NDDS_DiscoveryI*)((self_)->_parent._intf))->on_before_local_datawriter_created(self_,p_,dw_key_,res_)