From 984065abad9b7acb51322d945c8d69b10b9bbb42 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Tue, 17 Jan 2023 14:54:40 +0000 Subject: [PATCH] Rename RMW type name to "incompatible type". Signed-off-by: Chris Lalancette --- rmw_cyclonedds_cpp/src/rmw_node.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/rmw_cyclonedds_cpp/src/rmw_node.cpp b/rmw_cyclonedds_cpp/src/rmw_node.cpp index d0a84044..a289e1b7 100644 --- a/rmw_cyclonedds_cpp/src/rmw_node.cpp +++ b/rmw_cyclonedds_cpp/src/rmw_node.cpp @@ -718,7 +718,7 @@ extern "C" rmw_ret_t rmw_event_set_callback( break; } - case RMW_EVENT_PUBLISHER_INCONSISTENT_TOPIC: + case RMW_EVENT_PUBLISHER_INCOMPATIBLE_TYPE: { auto pub_event = static_cast(rmw_event->data); event_set_callback( @@ -727,7 +727,7 @@ extern "C" rmw_ret_t rmw_event_set_callback( break; } - case RMW_EVENT_SUBSCRIPTION_INCONSISTENT_TOPIC: + case RMW_EVENT_SUBSCRIPTION_INCOMPATIBLE_TYPE: { auto sub_event = static_cast(rmw_event->data); event_set_callback( @@ -3647,8 +3647,8 @@ static const std::unordered_map mask_map{ {RMW_EVENT_REQUESTED_QOS_INCOMPATIBLE, DDS_REQUESTED_INCOMPATIBLE_QOS_STATUS}, {RMW_EVENT_OFFERED_QOS_INCOMPATIBLE, DDS_OFFERED_INCOMPATIBLE_QOS_STATUS}, {RMW_EVENT_MESSAGE_LOST, DDS_SAMPLE_LOST_STATUS}, - {RMW_EVENT_PUBLISHER_INCONSISTENT_TOPIC, DDS_INCONSISTENT_TOPIC_STATUS}, - {RMW_EVENT_SUBSCRIPTION_INCONSISTENT_TOPIC, DDS_INCONSISTENT_TOPIC_STATUS}, + {RMW_EVENT_PUBLISHER_INCOMPATIBLE_TYPE, DDS_INCONSISTENT_TOPIC_STATUS}, + {RMW_EVENT_SUBSCRIPTION_INCOMPATIBLE_TYPE, DDS_INCONSISTENT_TOPIC_STATUS}, }; static bool is_event_supported(const rmw_event_type_t event_t) @@ -3821,8 +3821,8 @@ extern "C" rmw_ret_t rmw_take_event( } } - case RMW_EVENT_PUBLISHER_INCONSISTENT_TOPIC: { - auto it = static_cast(event_info); + case RMW_EVENT_PUBLISHER_INCOMPATIBLE_TYPE: { + auto it = static_cast(event_info); auto pub = static_cast(event_handle->data); const dds_entity_t topic = dds_get_topic(pub->enth); @@ -3838,8 +3838,8 @@ extern "C" rmw_ret_t rmw_take_event( } } - case RMW_EVENT_SUBSCRIPTION_INCONSISTENT_TOPIC: { - auto it = static_cast(event_info); + case RMW_EVENT_SUBSCRIPTION_INCOMPATIBLE_TYPE: { + auto it = static_cast(event_info); auto sub = static_cast(event_handle->data); const dds_entity_t topic = dds_get_topic(sub->enth);