RTI Connext Micro  Version 2.4.1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
disc_dpde_discovery_plugin.h
1 /*
2 
3  (c) Copyright 2008-2014 Real-Time Innovations
4  All rights reserved.
5  No duplications, whole or partial, manual or electronic, may be made
6  without express written permission. Any such copies, or
7  revisions thereof, must display this notice unaltered.
8  This code contains trade secrets of Real-Time Innovations, Inc.
9 
10 modification history
11 ------------ -------
12 1.0b,09sep12,tk Updated
13 1.0a,09sep08,tk Created
14 =========================================================================*/
15 
16 #ifndef disc_dpde_discovery_plugin_h
17 #define disc_dpde_discovery_plugin_h
18 
19 
20 #ifndef disc_dpde_dll_h
22 #endif
23 #ifndef dds_c_discovery_plugin_h
25 #endif
26 
27 struct DPDE_DiscoveryPlugin;
28 typedef struct DPDE_DiscoveryPlugin DPDE_DiscoveryPlugin_T;
29 
30 /*i \file
31  \brief Dynamic Participant/Static Endpoint Discovery Plugin.
32 */
33 
34 /*i \ingroup DPDEModule
35  \brief Dynamic Participant Dynamic Endpoint Discovery Plugin
36 
37  The Plugin APIs are used to configure and instantiate the RTI
38  Connext Micro Dynamic Participant Dynamic Endpoint Discovery Plugin.
39 */
40 
41 /*i \ingroup DPDEModule
42 
43  \brief Properties structure to tune the workings of the DPDE Discovery Plugin.
44 */
45 
46 #ifdef __cplusplus
47 extern "C"
48 {
49 #endif
50 
52 DISC_DPDEDllExport DDS_ReturnCode_t
53 DPDE_DiscoveryPluginProperty_initialize(
54  struct DPDE_DiscoveryPluginProperty* self);
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 /*e \dref_DPDE_DiscoveryPluginProperty
61 */
63 {
64  struct RT_ComponentFactoryProperty _parent;
65 
66  /*e \dref_DPDE_DiscoveryPluginProperty_participant_liveliness_assert_period
67  */
69 
70  /*e \dref_DPDE_DiscoveryPluginProperty_participant_liveliness_lease_duration
71  */
73 
74  /*e \dref_DPDE_DiscoveryPluginProperty_initial_participant_announcements
75  */
77 
78  /*e \dref_DPDE_DiscoveryPluginProperty_initial_participant_announcement_period
79  */
81 
82 #ifdef RTI_CPP
83  public:\
85  {
86  DPDE_DiscoveryPluginProperty_initialize(this);
87  }
89  private:\
91  const struct DPDE_DiscoveryPluginProperty& from )
92  {
93  UNUSED_ARG(from);
94  }
95  struct DPDE_DiscoveryPluginProperty& operator=(
96  const struct DPDE_DiscoveryPluginProperty& from )
97  {
98  UNUSED_ARG(from);
99  return *this;
100  }
101  bool operator==(
102  const struct DPDE_DiscoveryPluginProperty& other)
103  {
104  UNUSED_ARG(other);
105  return false;
106  }
107  bool operator!=(
108  const struct DPDE_DiscoveryPluginProperty& other)
109  {
110  UNUSED_ARG(other);
111  return false;
112  }
113 #endif
114 };
115 
116 #ifdef __cplusplus
117 extern "C"
118 {
119 #endif
120 
121 #define DPDE_DISCOVERY_INTERFACE_ID \
122  RT_MKINTERFACEID(RT_COMPONENT_CLASS_DISCOVERY,\
123  RT_COMPONENT_INSTANCE_DISCOVERY_DPDE)
124 
125 /*i \dref_DPDE_DiscoveryPluginProperty_INITIALIZER
126  */
127 #define DPDE_DiscoveryPluginProperty_INITIALIZER \
128 {\
129  RT_ComponentFactoryProperty_INITIALIZER,\
130  {30,0}, \
131  {100,0}, \
132  5, \
133  {1,0}, \
134 }
135 
136 /* -------------------------------------------------------------------------- */
137 /* Plugin factory
138  */
139 /*ce \dref_DPDE_DiscoveryFactory_get_instance
140  */
141 MUST_CHECK_RETURN DISC_DPDEDllExport struct RT_ComponentFactoryI*
142 DPDE_DiscoveryFactory_get_interface(void);
143 
144 #ifdef __cplusplus
145 } /* extern "C" */
146 #endif
147 
148 
149 #endif /* disc_dpde_discovery_plugin_h */

RTI Connext Micro Version 2.4.1.0 Copyright © Thu Nov 20 2014 Real-Time Innovations, Inc