Skip to content

Commit

Permalink
Rename find_type_support to find_message_type_support.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette committed Jan 8, 2024
1 parent 177451a commit 9d9f6f6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions rmw_zenoh_cpp/src/rmw_zenoh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ z_owned_keyexpr_t ros_topic_name_to_zenoh_key(
}

//==============================================================================
const rosidl_message_type_support_t * find_type_support(
const rosidl_message_type_support_t * find_message_type_support(
const rosidl_message_type_support_t * type_supports)
{
const rosidl_message_type_support_t * type_support = get_message_typesupport_handle(
Expand Down Expand Up @@ -466,9 +466,9 @@ rmw_create_publisher(
}

// Get the RMW type support.
const rosidl_message_type_support_t * type_support = find_type_support(type_supports);
const rosidl_message_type_support_t * type_support = find_message_type_support(type_supports);
if (type_support == nullptr) {
// error was already set by find_type_support
// error was already set by find_message_type_support
return nullptr;
}

Expand Down Expand Up @@ -1032,9 +1032,9 @@ rmw_serialize(
const rosidl_message_type_support_t * type_support,
rmw_serialized_message_t * serialized_message)
{
const rosidl_message_type_support_t * ts = find_type_support(type_support);
const rosidl_message_type_support_t * ts = find_message_type_support(type_support);
if (ts == nullptr) {
// error was already set by find_type_support
// error was already set by find_message_type_support
return RMW_RET_ERROR;
}

Expand Down Expand Up @@ -1067,9 +1067,9 @@ rmw_deserialize(
const rosidl_message_type_support_t * type_support,
void * ros_message)
{
const rosidl_message_type_support_t * ts = find_type_support(type_support);
const rosidl_message_type_support_t * ts = find_message_type_support(type_support);
if (ts == nullptr) {
// error was already set by find_type_support
// error was already set by find_message_type_support
return RMW_RET_ERROR;
}

Expand Down Expand Up @@ -1147,9 +1147,9 @@ rmw_create_subscription(
// return nullptr;
// }

const rosidl_message_type_support_t * type_support = find_type_support(type_supports);
const rosidl_message_type_support_t * type_support = find_message_type_support(type_supports);
if (type_support == nullptr) {
// error was already set by find_type_support
// error was already set by find_message_type_support
return nullptr;
}

Expand Down Expand Up @@ -1759,7 +1759,7 @@ rmw_create_client(
// Obtain the type support
const rosidl_service_type_support_t * type_support = find_service_type_support(type_supports);
if (type_support == nullptr) {
// error was already set by find_type_support
// error was already set by find_service_type_support
return nullptr;
}

Expand Down Expand Up @@ -2186,7 +2186,7 @@ rmw_create_service(
// Get the RMW type support.
const rosidl_service_type_support_t * type_support = find_service_type_support(type_supports);
if (type_support == nullptr) {
// error was already set by find_type_support
// error was already set by find_service_type_support
return nullptr;
}

Expand Down

0 comments on commit 9d9f6f6

Please sign in to comment.