Skip to content

Commit

Permalink
Added rmw_event_type_is_supported (#395)
Browse files Browse the repository at this point in the history
* Added rmw_event_check_compatible

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>

* review feedback

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>

---------

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
  • Loading branch information
ahcorde authored Mar 11, 2025
1 parent dd0f0e2 commit 5cf8420
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions rmw/include/rmw/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,17 @@ RMW_WARN_UNUSED
rmw_ret_t
rmw_event_fini(rmw_event_t * event);


/// Check if an event type is supported by the RMW implementation.
/*
* \param[in] rmw_event_type to check
* \return True if the event is supported false otherwise.
*/
RMW_PUBLIC
RMW_WARN_UNUSED
bool
rmw_event_type_is_supported(rmw_event_type_t rmw_event_type);

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit 5cf8420

Please sign in to comment.