|
120 | 120 | #endif |
121 | 121 |
|
122 | 122 | #if defined(DMQ_THREAD_STDLIB) |
123 | | - #include "predef/os/stdlib/Thread.h" |
124 | | - #include "predef/os/stdlib/ThreadMsg.h" |
| 123 | + #include "port/os/stdlib/Thread.h" |
| 124 | + #include "port/os/stdlib/ThreadMsg.h" |
125 | 125 | #elif defined(DMQ_THREAD_WIN32) |
126 | | - #include "predef/os/win32/Thread.h" |
127 | | - #include "predef/os/win32/ThreadMsg.h" |
| 126 | + #include "port/os/win32/Thread.h" |
| 127 | + #include "port/os/win32/ThreadMsg.h" |
128 | 128 | #elif defined(DMQ_THREAD_FREERTOS) |
129 | | - #include "predef/os/freertos/Thread.h" |
130 | | - #include "predef/os/freertos/ThreadMsg.h" |
| 129 | + #include "port/os/freertos/Thread.h" |
| 130 | + #include "port/os/freertos/ThreadMsg.h" |
131 | 131 | #elif defined(DMQ_THREAD_THREADX) |
132 | | - #include "predef/os/threadx/Thread.h" |
133 | | - #include "predef/os/threadx/ThreadMsg.h" |
| 132 | + #include "port/os/threadx/Thread.h" |
| 133 | + #include "port/os/threadx/ThreadMsg.h" |
134 | 134 | #elif defined(DMQ_THREAD_ZEPHYR) |
135 | | - #include "predef/os/zephyr/Thread.h" |
136 | | - #include "predef/os/zephyr/ThreadMsg.h" |
| 135 | + #include "port/os/zephyr/Thread.h" |
| 136 | + #include "port/os/zephyr/ThreadMsg.h" |
137 | 137 | #elif defined(DMQ_THREAD_CMSIS_RTOS2) |
138 | | - #include "predef/os/cmsis-rtos2/Thread.h" |
139 | | - #include "predef/os/cmsis-rtos2/ThreadMsg.h" |
| 138 | + #include "port/os/cmsis-rtos2/Thread.h" |
| 139 | + #include "port/os/cmsis-rtos2/ThreadMsg.h" |
140 | 140 | #elif defined(DMQ_THREAD_QT) |
141 | | - #include "predef/os/qt/Thread.h" |
142 | | - #include "predef/os/qt/ThreadMsg.h" |
| 141 | + #include "port/os/qt/Thread.h" |
| 142 | + #include "port/os/qt/ThreadMsg.h" |
143 | 143 | #elif defined(DMQ_THREAD_NONE) |
144 | 144 | // Bare metal: User must implement their own polling/interrupt logic |
145 | 145 | #else |
|
148 | 148 | #endif |
149 | 149 |
|
150 | 150 | #if defined(DMQ_SERIALIZE_MSGPACK) |
151 | | - #include "predef/serialize/msgpack/Serializer.h" |
| 151 | + #include "port/serialize/msgpack/Serializer.h" |
152 | 152 | #elif defined(DMQ_SERIALIZE_CEREAL) |
153 | | - #include "predef/serialize/cereal/Serializer.h" |
| 153 | + #include "port/serialize/cereal/Serializer.h" |
154 | 154 | #elif defined(DMQ_SERIALIZE_BITSERY) |
155 | | - #include "predef/serialize/bitsery/Serializer.h" |
| 155 | + #include "port/serialize/bitsery/Serializer.h" |
156 | 156 | #elif defined(DMQ_SERIALIZE_RAPIDJSON) |
157 | | - #include "predef/serialize/rapidjson/Serializer.h" |
| 157 | + #include "port/serialize/rapidjson/Serializer.h" |
158 | 158 | #elif defined(DMQ_SERIALIZE_SERIALIZE) |
159 | | - #include "predef/serialize/serialize/Serializer.h" |
| 159 | + #include "port/serialize/serialize/Serializer.h" |
160 | 160 | #elif defined(DMQ_SERIALIZE_NONE) |
161 | 161 | // Create a custom application-specific serializer |
162 | 162 | #else |
163 | 163 | #warning "Serialize implementation not found." |
164 | 164 | #endif |
165 | 165 |
|
166 | 166 | #if defined(DMQ_TRANSPORT_ZEROMQ) |
167 | | - #include "predef/dispatcher/Dispatcher.h" |
168 | | - #include "predef/transport/zeromq/ZeroMqTransport.h" |
| 167 | + #include "extras/dispatcher/Dispatcher.h" |
| 168 | + #include "port/transport/zeromq/ZeroMqTransport.h" |
169 | 169 | #elif defined(DMQ_TRANSPORT_NNG) |
170 | | - #include "predef/dispatcher/Dispatcher.h" |
171 | | - #include "predef/transport/nng/NngTransport.h" |
| 170 | + #include "extras/dispatcher/Dispatcher.h" |
| 171 | + #include "port/transport/nng/NngTransport.h" |
172 | 172 | #elif defined(DMQ_TRANSPORT_WIN32_PIPE) |
173 | | - #include "predef/dispatcher/Dispatcher.h" |
174 | | - #include "predef/transport/win32-pipe/Win32PipeTransport.h" |
| 173 | + #include "extras/dispatcher/Dispatcher.h" |
| 174 | + #include "port/transport/win32-pipe/Win32PipeTransport.h" |
175 | 175 | #elif defined(DMQ_TRANSPORT_WIN32_UDP) |
176 | | - #include "predef/dispatcher/Dispatcher.h" |
177 | | - #include "predef/transport/win32-udp/Win32UdpTransport.h" |
178 | | - #include "predef/transport/win32-udp/MulticastTransport.h" |
| 176 | + #include "extras/dispatcher/Dispatcher.h" |
| 177 | + #include "port/transport/win32-udp/Win32UdpTransport.h" |
| 178 | + #include "port/transport/win32-udp/MulticastTransport.h" |
179 | 179 | #elif defined(DMQ_TRANSPORT_WIN32_TCP) |
180 | | - #include "predef/dispatcher/Dispatcher.h" |
181 | | - #include "predef/transport/win32-tcp/Win32TcpTransport.h" |
| 180 | + #include "extras/dispatcher/Dispatcher.h" |
| 181 | + #include "port/transport/win32-tcp/Win32TcpTransport.h" |
182 | 182 | #elif defined(DMQ_TRANSPORT_LINUX_UDP) |
183 | | - #include "predef/dispatcher/Dispatcher.h" |
184 | | - #include "predef/transport/linux-udp/LinuxUdpTransport.h" |
185 | | - #include "predef/transport/linux-udp/MulticastTransport.h" |
| 183 | + #include "extras/dispatcher/Dispatcher.h" |
| 184 | + #include "port/transport/linux-udp/LinuxUdpTransport.h" |
| 185 | + #include "port/transport/linux-udp/MulticastTransport.h" |
186 | 186 | #elif defined(DMQ_TRANSPORT_LINUX_TCP) |
187 | | - #include "predef/dispatcher/Dispatcher.h" |
188 | | - #include "predef/transport/linux-tcp/LinuxTcpTransport.h" |
| 187 | + #include "extras/dispatcher/Dispatcher.h" |
| 188 | + #include "port/transport/linux-tcp/LinuxTcpTransport.h" |
189 | 189 | #elif defined(DMQ_TRANSPORT_MQTT) |
190 | | - #include "predef/dispatcher/Dispatcher.h" |
191 | | - #include "predef/transport/mqtt/MqttTransport.h" |
| 190 | + #include "extras/dispatcher/Dispatcher.h" |
| 191 | + #include "port/transport/mqtt/MqttTransport.h" |
192 | 192 | #elif defined(DMQ_TRANSPORT_SERIAL_PORT) |
193 | | - #include "predef/dispatcher/Dispatcher.h" |
194 | | - #include "predef/transport/serial/SerialTransport.h" |
| 193 | + #include "extras/dispatcher/Dispatcher.h" |
| 194 | + #include "port/transport/serial/SerialTransport.h" |
195 | 195 | #elif defined(DMQ_TRANSPORT_ARM_LWIP_UDP) |
196 | | - #include "predef/dispatcher/Dispatcher.h" |
197 | | - #include "predef/transport/arm-lwip-udp/ArmLwipUdpTransport.h" |
| 196 | + #include "extras/dispatcher/Dispatcher.h" |
| 197 | + #include "port/transport/arm-lwip-udp/ArmLwipUdpTransport.h" |
198 | 198 | #elif defined(DMQ_TRANSPORT_ARM_LWIP_NETCONN_UDP) |
199 | | - #include "predef/dispatcher/Dispatcher.h" |
200 | | - #include "predef/transport/arm-lwip-netconn-udp/ArmLwipNetconnUdpTransport.h" |
| 199 | + #include "extras/dispatcher/Dispatcher.h" |
| 200 | + #include "port/transport/arm-lwip-netconn-udp/ArmLwipNetconnUdpTransport.h" |
201 | 201 | #elif defined(DMQ_TRANSPORT_THREADX_UDP) |
202 | | - #include "predef/dispatcher/Dispatcher.h" |
203 | | - #include "predef/transport/threadx-udp/NetXUdpTransport.h" |
| 202 | + #include "extras/dispatcher/Dispatcher.h" |
| 203 | + #include "port/transport/threadx-udp/NetXUdpTransport.h" |
204 | 204 | #elif defined(DMQ_TRANSPORT_STM32_UART) |
205 | | - #include "predef/dispatcher/Dispatcher.h" |
206 | | - #include "predef/transport/stm32-uart/Stm32UartTransport.h" |
| 205 | + #include "extras/dispatcher/Dispatcher.h" |
| 206 | + #include "port/transport/stm32-uart/Stm32UartTransport.h" |
207 | 207 | #elif defined(DMQ_TRANSPORT_ZEPHYR_UDP) |
208 | | - #include "predef/dispatcher/Dispatcher.h" |
209 | | - #include "predef/transport/zephyr-udp/ZephyrUdpTransport.h" |
| 208 | + #include "extras/dispatcher/Dispatcher.h" |
| 209 | + #include "port/transport/zephyr-udp/ZephyrUdpTransport.h" |
210 | 210 | #elif defined(DMQ_TRANSPORT_NONE) |
211 | 211 | // No built-in transport. Include the interface and dispatcher so application code |
212 | 212 | // can implement a custom ITransport and use RemoteChannel with a mock or stub. |
213 | | - #include "predef/dispatcher/Dispatcher.h" |
214 | | - #include "predef/transport/ITransport.h" |
| 213 | + #include "extras/dispatcher/Dispatcher.h" |
| 214 | + #include "port/transport/ITransport.h" |
215 | 215 | #else |
216 | 216 | #warning "Transport implementation not found." |
217 | 217 | #endif |
|
228 | 228 | defined(DMQ_TRANSPORT_ARM_LWIP_NETCONN_UDP) || defined(DMQ_TRANSPORT_THREADX_UDP) || \ |
229 | 229 | defined(DMQ_TRANSPORT_STM32_UART) || defined(DMQ_TRANSPORT_ZEPHYR_UDP) || \ |
230 | 230 | defined(DMQ_TRANSPORT_NONE) |
231 | | - #include "predef/dispatcher/RemoteChannel.h" |
| 231 | + #include "extras/dispatcher/RemoteChannel.h" |
232 | 232 | #endif |
233 | 233 |
|
234 | | -#include "predef/util/Fault.h" |
| 234 | +#include "extras/util/Fault.h" |
235 | 235 |
|
236 | 236 | // Only include Timer and AsyncInvoke if threads exist |
237 | 237 | #if !defined(DMQ_THREAD_NONE) |
238 | | - #include "predef/util/Timer.h" |
239 | | - #include "predef/util/AsyncInvoke.h" |
240 | | - #include "predef/util/TransportMonitor.h" |
| 238 | + #include "extras/util/Timer.h" |
| 239 | + #include "extras/util/AsyncInvoke.h" |
| 240 | + #include "extras/util/TransportMonitor.h" |
241 | 241 | #endif |
242 | 242 |
|
243 | 243 | // Only include NetworkEngine if a transport that uses it is active |
244 | 244 | #if defined(DMQ_TRANSPORT_ZEROMQ) || defined(DMQ_TRANSPORT_WIN32_UDP) || \ |
245 | 245 | defined(DMQ_TRANSPORT_LINUX_UDP) || defined(DMQ_TRANSPORT_STM32_UART) || \ |
246 | 246 | defined(DMQ_TRANSPORT_SERIAL_PORT) |
247 | | - #include "predef/util/NetworkEngine.h" |
| 247 | + #include "extras/util/NetworkEngine.h" |
248 | 248 | #endif |
249 | 249 |
|
250 | 250 | #if defined(DMQ_DATABUS) |
251 | | - #include "predef/databus/DataBus.h" |
252 | | - #include "predef/databus/Participant.h" |
| 251 | + #include "extras/databus/DataBus.h" |
| 252 | + #include "extras/databus/Participant.h" |
253 | 253 | #endif |
254 | 254 |
|
255 | 255 | #endif |
0 commit comments