diff --git a/rmw_fastrtps_cpp/src/rmw_event.cpp b/rmw_fastrtps_cpp/src/rmw_event.cpp index 56d8779e..dc8ced7b 100644 --- a/rmw_fastrtps_cpp/src/rmw_event.cpp +++ b/rmw_fastrtps_cpp/src/rmw_event.cpp @@ -61,4 +61,10 @@ rmw_event_set_callback( callback, user_data); } + +bool +rmw_event_type_is_supported(rmw_event_type_t rmw_event_type) +{ + return rmw_fastrtps_shared_cpp::__rmw_event_type_is_supported(rmw_event_type); +} } // extern "C" diff --git a/rmw_fastrtps_dynamic_cpp/src/rmw_event.cpp b/rmw_fastrtps_dynamic_cpp/src/rmw_event.cpp index 13163579..cdb61ea8 100644 --- a/rmw_fastrtps_dynamic_cpp/src/rmw_event.cpp +++ b/rmw_fastrtps_dynamic_cpp/src/rmw_event.cpp @@ -61,4 +61,10 @@ rmw_event_set_callback( callback, user_data); } + +bool +rmw_event_type_is_supported(rmw_event_type_t rmw_event_type) +{ + return rmw_fastrtps_shared_cpp::__rmw_event_type_is_supported(rmw_event_type); +} } // extern "C" diff --git a/rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/rmw_common.hpp b/rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/rmw_common.hpp index 1b4f73bc..98ebf7d3 100644 --- a/rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/rmw_common.hpp +++ b/rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/rmw_common.hpp @@ -578,6 +578,10 @@ RMW_FASTRTPS_SHARED_CPP_PUBLIC bool __rmw_feature_supported(rmw_feature_t feature); +RMW_FASTRTPS_SHARED_CPP_PUBLIC +bool +__rmw_event_type_is_supported(rmw_event_type_t rmw_event_type); + } // namespace rmw_fastrtps_shared_cpp #endif // RMW_FASTRTPS_SHARED_CPP__RMW_COMMON_HPP_ diff --git a/rmw_fastrtps_shared_cpp/src/rmw_event.cpp b/rmw_fastrtps_shared_cpp/src/rmw_event.cpp index 0aa43a47..2985d135 100644 --- a/rmw_fastrtps_shared_cpp/src/rmw_event.cpp +++ b/rmw_fastrtps_shared_cpp/src/rmw_event.cpp @@ -164,4 +164,10 @@ __rmw_event_set_callback( return RMW_RET_OK; } +bool +__rmw_event_type_is_supported(rmw_event_type_t rmw_event_type) +{ + return rmw_fastrtps_shared_cpp::internal::is_event_supported(rmw_event_type); +} + } // namespace rmw_fastrtps_shared_cpp