Skip to content

Commit

Permalink
Added missing documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Bonnie <[email protected]>
  • Loading branch information
dabonnie committed Apr 1, 2019
1 parent f387d78 commit a13bbdd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rmw/include/rmw/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,15 @@ typedef enum rmw_event_type_t
RMW_EVENT_INVALID
} rmw_event_type_t;


/// Encapsulate the RMW event implementation, data, and type.
typedef struct RMW_PUBLIC_TYPE rmw_event_t
{
/// Implementation identifier, used to ensure two different implementations are not being mixed.
const char * implementation_identifier;
/// Data specific to this event type from either the publisher or subscriber.
void * data;
/// The event type that occurred.
rmw_event_type_t event_type;
} rmw_event_t;

Expand Down
1 change: 1 addition & 0 deletions rmw/include/rmw/ret_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ typedef int32_t rmw_ret_t;
#define RMW_RET_OK 0
#define RMW_RET_ERROR 1
#define RMW_RET_TIMEOUT 2
/// The operation or event handling is not supported.
#define RMW_RET_UNSUPPORTED 3
/// Failed to allocate memory return code.
#define RMW_RET_BAD_ALLOC 10
Expand Down

0 comments on commit a13bbdd

Please sign in to comment.