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

Update gid API return codes. #461

Merged
merged 1 commit into from
Sep 22, 2020
Merged

Update gid API return codes. #461

merged 1 commit into from
Sep 22, 2020

Conversation

hidmic
Copy link
Contributor

@hidmic hidmic commented Sep 21, 2020

To be compliant with the API spec. Connected to ros2/rmw#274.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
@hidmic
Copy link
Contributor Author

hidmic commented Sep 21, 2020

CI up to test_rmw_implementation:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

One question.

Comment on lines -51 to -54
if (!detail1) {
RMW_SET_ERROR_MSG("gid1 is invalid");
return RMW_RET_ERROR;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

So can it be the case that gid1->data is nullptr? Or are we just taking the approach of elsewhere where nullptr is just a special case of "undefined pointer"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

gid1->data won't ever be nullptr -- it's a primitive array.

Copy link
Contributor

@Lobotuerk Lobotuerk left a comment

Choose a reason for hiding this comment

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

LGTM

@hidmic hidmic merged commit 7bcd03e into master Sep 22, 2020
@delete-merged-branch delete-merged-branch bot deleted the hidmic/update-gid-api-ret branch September 22, 2020 15:30
@hidmic hidmic restored the hidmic/update-gid-api-ret branch September 22, 2020 20:07
ahcorde pushed a commit that referenced this pull request Oct 9, 2020
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
ahcorde pushed a commit that referenced this pull request Oct 15, 2020
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
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.

3 participants