-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require enclave upon rmw_init() call. #247
Conversation
Signed-off-by: Michel Hidalgo <[email protected]>
Considering that it is mandatory, I'd rather make |
For what it's worth, I think we should do the right thing for dealing with Galactic, and then worry about backporting it (which may need a different solution). If that means breaking the API here, then I'd be for it (though we also have to worry about deprecating the old API). |
@clalancette that's fair. But because we have to backport it, I'll get documentation and tests right for Foxy first. Then we can change the API and propagate all changes. Do you agree? |
I don't see a benefit of adding an extra argument.
👍 |
I understand how convenient it is, but IMHO it is conceptually inaccurate. As it stands, |
I don't get the point. If the API would be: rmw_init(rmw_context_t * context, rmw_init_options_t *init_options, const char * enclave_name);
|
While that is true, that is a quirk of this code being in C. If this was in C++, for instance, that argument would likely be a |
This. Even though a check for nullity is still required because of language support, the API would better convey the fact that an |
Ok, going in with this. |
Ok, I think it's a valid change, though I don't see a huge win in |
Looks like changes to from the related PRs caused |
Looks like ros2/rmw_implementation#113 should be merged to resolve the failures. |
Signed-off-by: Michel Hidalgo <[email protected]>
Signed-off-by: Michel Hidalgo <[email protected]>
Follow-up after #243. Enclave is within
rmw_init_options_t
but it isn't an option to provide one.