Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Add rmw_*_event_init() functions #397

Merged
merged 3 commits into from
Mar 19, 2020

Conversation

mm318
Copy link
Member

@mm318 mm318 commented Mar 17, 2020

Related to ros2/ros2#822

This adds the rmw_publisher_event_init() and rmw_subscription_event_init() functions to rmw_connext, moved from rmw, so that these functions will be able to check for whether or not the given type of rmw_event_type_t is supported by the chosen middleware.

Signed-off-by: Miaofei <miaofei@amazon.com>
Signed-off-by: Miaofei <miaofei@amazon.com>
rmw_connext_cpp/src/rmw_event.cpp Outdated Show resolved Hide resolved
rmw_connext_shared_cpp/src/event.cpp Show resolved Hide resolved
Signed-off-by: Miaofei <miaofei@amazon.com>
*/
RMW_CONNEXT_SHARED_CPP_PUBLIC
rmw_ret_t
__rmw_init_event(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit unrelated because it's extensively used in this package, function names starting with a leading underscore or containing __ should be avoided, as those names are reserved by the standard.
See ros2/rcl#597 (comment).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do a separate pull request that changes all the function names in this repo consistently.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants