From 5029e4fdecf7c3e0aed1761caba85a49feeebcba Mon Sep 17 00:00:00 2001 From: Michel Hidalgo Date: Tue, 26 May 2020 13:37:01 -0300 Subject: [PATCH] Change namespacing-specific API visibility. Signed-off-by: Michel Hidalgo --- .../include/rmw_fastrtps_shared_cpp/namespace_prefix.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/namespace_prefix.hpp b/rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/namespace_prefix.hpp index 08bb3a787..a2063a0ab 100644 --- a/rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/namespace_prefix.hpp +++ b/rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/namespace_prefix.hpp @@ -36,18 +36,22 @@ RMW_FASTRTPS_SHARED_CPP_PUBLIC extern const std::vector _ros_prefix * \return name stripped of prefix, or * \return "" if name doesn't start with prefix */ +RMW_FASTRTPS_SHARED_CPP_PUBLIC std::string _resolve_prefix(const std::string & name, const std::string & prefix); /// Return the ROS specific prefix if it exists, otherwise "". +RMW_FASTRTPS_SHARED_CPP_PUBLIC std::string _get_ros_prefix_if_exists(const std::string & topic_name); /// Returns the topic name stripped of and ROS specific prefix if exists. +RMW_FASTRTPS_SHARED_CPP_PUBLIC std::string _strip_ros_prefix_if_exists(const std::string & topic_name); /// Returns the list of ros prefixes +RMW_FASTRTPS_SHARED_CPP_PUBLIC const std::vector & _get_all_ros_prefixes(); #endif // RMW_FASTRTPS_SHARED_CPP__NAMESPACE_PREFIX_HPP_