-
Notifications
You must be signed in to change notification settings - Fork 2.1k
net/gcoap: remove gcoap_req_send2() #12837
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
Conversation
|
I'm unsure about this, especially as planned deprecation is not that far away. Hence I would suggest to simply wait until after 2020.01 and do the removal then. |
|
This PR saves a step. For example, the coap-chat RIOT app includes a call to gcoap_req_send2(). Without #12837:
With #12837:
Also #12780 suggests changing the return type for gcoap_req_send() to a signed value. I think it's a good idea, and I'd like to include that as well in 2020.01 to concentrate the pain into a single pass through the code. |
|
I agree with @kb2ma, as |
|
The application repository needs to be updated anyway, and the API change will only come into effect after the release. @kb2ma are planning to provide the required change for the application repository? |
|
(The update to our application repositories to 2019.10 is also missing :-/) |
|
(see wiki doc |
Sure, I can do that. Let me make sure I understand the synchronization with the applications repository. Let's assume this PR is accepted some time this month. In that coap-chat update PR, I would need to update the RIOT submodule, right? If that PR is accepted, then the RIOT submodule would point to an unreleased version of RIOT. Is that acceptable? |
Thanks for pointing that out. I will plan to update/test the applications repository soon. |
I would first change over to the non-2 version of that function and then for the release (when the application directory is synchronized) switch over to the 2 version. Alternatively, we skip the step with the non-2 version as you proposed. This is possible as the applications directory is bound to a specific release, not volatile master. ;-) |
|
RIOT-OS/applications#68 was merged, I think we can go ahead here, right @kb2ma? |
|
Yes, good to go. No other references to gcoap_req_send2() in master. I have a note to follow-up on the coap-chat app once 2020.01 is released and we update the applications repository. |
|
@miri64 this one is only missing an ACK! :) |
miri64
left a comment
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.
ACK! (see discussion above for reasoning)
Contribution description
#11445 deprecated
gcoap_req_send2(), with removal scheduled for after the 2020.01 release. However, the recent merge of #9857 changed the signature of gcoap_req_send2() (and gcoap_req_send()) to include a context pointer. This PR removes gcoap_req_send2() now because any existing uses must be touched anyway.Testing procedure
Expect a text search of the code base for the function will not find any instances.
Issues/PRs references
See #11445 for deprecation discussion.