|
21 | 21 | #include <memory> |
22 | 22 | #include <string> |
23 | 23 |
|
24 | | -#include "rcl/rcl_dynamic_typesupport_c/message_introspection.h" |
| 24 | +#include "rcl/dynamic_message_type_support.h" |
25 | 25 | #include "rcl/type_hash.h" |
26 | 26 | #include "rcl/types.h" |
27 | 27 | #include "rcutils/logging_macros.h" |
@@ -70,7 +70,7 @@ DynamicMessageTypeSupport::DynamicMessageTypeSupport( |
70 | 70 | if (!ts->data) { |
71 | 71 | throw std::runtime_error("could not init rosidl message type support impl"); |
72 | 72 | } |
73 | | - if (ts->typesupport_identifier != rmw_dynamic_typesupport_c__identifier) { |
| 73 | + if (ts->typesupport_identifier != rmw_get_dynamic_typesupport_identifier()) { |
74 | 74 | throw std::runtime_error("rosidl message type support is of the wrong type"); |
75 | 75 | } |
76 | 76 |
|
@@ -132,7 +132,7 @@ DynamicMessageTypeSupport::DynamicMessageTypeSupport( |
132 | 132 | if (!ts->data) { |
133 | 133 | throw std::runtime_error("could not init rosidl message type support impl"); |
134 | 134 | } |
135 | | - if (ts->typesupport_identifier != rmw_dynamic_typesupport_c__identifier) { |
| 135 | + if (ts->typesupport_identifier != rmw_get_dynamic_typesupport_identifier()) { |
136 | 136 | throw std::runtime_error("rosidl message type support is of the wrong type"); |
137 | 137 | } |
138 | 138 |
|
@@ -316,7 +316,7 @@ DynamicMessageTypeSupport::init_rosidl_message_type_support_( |
316 | 316 | // are managed by the passed in SharedPtr wrapper classes. We just delete it. |
317 | 317 | rosidl_message_type_support_.reset( |
318 | 318 | new rosidl_message_type_support_t{ |
319 | | - rmw_dynamic_typesupport_c__identifier, // typesupport_identifier |
| 319 | + rmw_get_dynamic_typesupport_identifier(), // typesupport_identifier |
320 | 320 | ts_impl, // data |
321 | 321 | get_message_typesupport_handle_function, // func |
322 | 322 | // get_type_hash_func |
|
0 commit comments