Skip to content

Commit

Permalink
introduce RMW_EVENT_TYPE_MAX in rmw_event_type_t.
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya Fujita <[email protected]>
  • Loading branch information
fujitatomoya committed Oct 11, 2024
1 parent 803d399 commit e64a877
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rmw/include/rmw/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ extern "C"
/// Define publisher/subscription events
typedef enum rmw_event_type_e
{
// initial value
RMW_EVENT_INVALID,

// subscription events
RMW_EVENT_LIVELINESS_CHANGED,
RMW_EVENT_REQUESTED_DEADLINE_MISSED,
Expand All @@ -48,7 +51,7 @@ typedef enum rmw_event_type_e
RMW_EVENT_PUBLICATION_MATCHED,

// sentinel value
RMW_EVENT_INVALID
RMW_EVENT_TYPE_MAX
} rmw_event_type_t;

/// Encapsulate the RMW event implementation, data, and type.
Expand Down

0 comments on commit e64a877

Please sign in to comment.