Skip to content

Commit

Permalink
Merge pull request #19 from mauropasse/mauro/cyclonedds-events-support
Browse files Browse the repository at this point in the history
Define publisher/subscription event types
  • Loading branch information
iRobot ROS authored Mar 5, 2021
2 parents 3a03b69 + 84a2fe0 commit c413e7c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rmw/include/rmw/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,13 @@ typedef enum rmw_event_type_t
RMW_EVENT_INVALID
} rmw_event_type_t;

/// Define publisher/subscription event types
typedef enum rmw_event_data_type_t
{
RMW_SUBSCRIBER_EVENT,
RMW_PUBLISHER_EVENT
} rmw_event_data_type_t;

/// Encapsulate the RMW event implementation, data, and type.
typedef struct RMW_PUBLIC_TYPE rmw_event_t
{
Expand All @@ -234,6 +241,7 @@ typedef struct RMW_PUBLIC_TYPE rmw_event_t
void * data;
/// The event type that occurred.
rmw_event_type_t event_type;
rmw_event_data_type_t event_data_type;
} rmw_event_t;

/// Allocation of memory for an rmw publisher
Expand Down

0 comments on commit c413e7c

Please sign in to comment.