Skip to content

openthread: Add header for OpenThread module #90588

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

Merged
merged 3 commits into from
May 30, 2025

Conversation

adigie
Copy link
Contributor

@adigie adigie commented May 26, 2025

In #89090, the OpenThread implementation was moved from net to the module, but no public API header was added. As a result, it was not possible to use the implementation without including zephyr/net/openthread.h.

This PR adds a public API header to the OpenThread module and removes the corresponding declarations from zephyr/net/openthread.h in favor of including the new module header.

Copy link
Collaborator

@rlubos rlubos left a comment

Choose a reason for hiding this comment

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

Please fix the compliance.

CC @ArekBalysNordic

@adigie
Copy link
Contributor Author

adigie commented May 26, 2025

@rlubos Fixed compliance and documentation build.

rlubos
rlubos previously approved these changes May 26, 2025
adigie added 3 commits May 27, 2025 14:52
* Add header with public API of OpenThread module.
* Add module include directory to Zephyr include directories.
* Use new header in platform implementation.

Signed-off-by: Adrian Gielniewski <[email protected]>
Use OpenThread module header instead of redefining its API.

Signed-off-by: Adrian Gielniewski <[email protected]>
Add openthread module header to INPUT due to dependencies to symbols in
`zephyr/net/openthread.h`

Signed-off-by: Adrian Gielniewski <[email protected]>
@adigie
Copy link
Contributor Author

adigie commented May 27, 2025

@rlubos @ArekBalysNordic I replaced usage of old API in modules/openthread/platform/ble.c, missed that before.

Copy link

@adigie adigie requested a review from rlubos May 28, 2025 13:42
@kartben kartben merged commit 73faf5c into zephyrproject-rtos:main May 30, 2025
29 checks passed
@adigie adigie deleted the ot-module-header branch May 30, 2025 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants