Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see what is happening here.
Over in https://github.com/ros2/rmw/pull/313/files#diff-0460a36c52d1df8664f7ab0ee834d07ac10cfaf17fda75f7477421e4aadf30d8R34, we are doing
typedef struct rmw_context_impl_s rmw_context_impl_t
, which we are then using later on. So here in the RMW implementation, we need to define this asstruct rmw_context_impl_s
, but not make itstruct rmw_context_impl_t
(since that is done at thermw
layer, not the implementation layer).I guess we do this in all of the RMW implementations, so this makes sense. It also means that, in theory, we could write a RMW layer purely in C (though I doubt we would ever do that).
This change is OK with me, but this is definitely going to have repercussions for RMW implementations that are not in the default build. We'll want to put a release note in place for this. I also think we should probably put a comment here explaining that this is the implementation for the stuff over in
rmw/init.h
, since understanding this is pretty tricky.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See e2b22c7.