Skip to content

Commit f202dff

Browse files
Added rmw_event_type_is_supported (#809)
* Added rmw_event_check_compatible Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> * Fixed build Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> * included review feedback Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> * review feedback Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> * Update rmw_fastrtps_cpp/src/rmw_event.cpp Co-authored-by: Miguel Company <miguelcompany@eprosima.com> Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com> * make linters happy Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> --------- Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com> Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
1 parent 78452b8 commit f202dff

4 files changed

Lines changed: 22 additions & 0 deletions

File tree

rmw_fastrtps_cpp/src/rmw_event.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,10 @@ rmw_event_set_callback(
6161
callback,
6262
user_data);
6363
}
64+
65+
bool
66+
rmw_event_type_is_supported(rmw_event_type_t rmw_event_type)
67+
{
68+
return rmw_fastrtps_shared_cpp::__rmw_event_type_is_supported(rmw_event_type);
69+
}
6470
} // extern "C"

rmw_fastrtps_dynamic_cpp/src/rmw_event.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,10 @@ rmw_event_set_callback(
6161
callback,
6262
user_data);
6363
}
64+
65+
bool
66+
rmw_event_type_is_supported(rmw_event_type_t rmw_event_type)
67+
{
68+
return rmw_fastrtps_shared_cpp::__rmw_event_type_is_supported(rmw_event_type);
69+
}
6470
} // extern "C"

rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/rmw_common.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,10 @@ RMW_FASTRTPS_SHARED_CPP_PUBLIC
578578
bool
579579
__rmw_feature_supported(rmw_feature_t feature);
580580

581+
RMW_FASTRTPS_SHARED_CPP_PUBLIC
582+
bool
583+
__rmw_event_type_is_supported(rmw_event_type_t rmw_event_type);
584+
581585
} // namespace rmw_fastrtps_shared_cpp
582586

583587
#endif // RMW_FASTRTPS_SHARED_CPP__RMW_COMMON_HPP_

rmw_fastrtps_shared_cpp/src/rmw_event.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,10 @@ __rmw_event_set_callback(
164164
return RMW_RET_OK;
165165
}
166166

167+
bool
168+
__rmw_event_type_is_supported(rmw_event_type_t rmw_event_type)
169+
{
170+
return rmw_fastrtps_shared_cpp::internal::is_event_supported(rmw_event_type);
171+
}
172+
167173
} // namespace rmw_fastrtps_shared_cpp

0 commit comments

Comments
 (0)