Skip to content
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

gcoap: adapt to API change in [PR20900] #130

Merged
merged 2 commits into from
Oct 17, 2024
Merged

gcoap: adapt to API change in [PR20900] #130

merged 2 commits into from
Oct 17, 2024

Conversation

chrysn
Copy link
Member

@chrysn chrysn commented Oct 17, 2024

While PR20900 provides a compatibility .hdr accessor through a union, that trick is not available through bindgen or c2rust, which all introduce a dummy-named field for the anonymous union. Instead, we follow the path set out by PR79 and introspect the source file.

Replaces and thus closes: #129

@maribu, please verify that this aligns with PR20900.

@chrysn chrysn mentioned this pull request Oct 17, 2024
While [PR20900] provides a compatibility .hdr accessor through a union,
that trick is not available through bindgen or c2rust, which all
introduce a dummy-named field for the anonymous union. Instead, we
follow the path set out by [PR79] and introspect the source file.

[PR20900]: RIOT-OS/RIOT#20900
[PR79]: #79

Co-Authored-By: Marian Buschsieweke <[email protected]>
@maribu
Copy link
Member

maribu commented Oct 17, 2024

Thx! This would work.

I split out the relevant API change into RIOT-OS/RIOT#20918. I'd like to have RIOT-OS/RIOT#20918 in first, not that there is some bike-shedding on the naming or so that would render this PR obsolete.

@chrysn chrysn merged commit 71e854e into main Oct 17, 2024
81 checks passed
@chrysn chrysn deleted the 129bis branch October 17, 2024 13:31
@chrysn
Copy link
Member Author

chrysn commented Oct 17, 2024

Thanks, merged.

If RIOT-OS/RIOT#20918 can indeed go in for the 2024.10 release, the workaround with two code paths could be very short lived :-)

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

Successfully merging this pull request may close these issues.

2 participants