Skip to content

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
Contributor

@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 <adrian.gielniewski@nordicsemi.no>
Use OpenThread module header instead of redefining its API.

Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
Add openthread module header to INPUT due to dependencies to symbols in
`zephyr/net/openthread.h`

Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
@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.

@sonarqubecloud
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