-
Notifications
You must be signed in to change notification settings - Fork 7.4k
drivers: modem: use zsock_ variants of socket API #26061
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
All checks passed. Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
Using |
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.
This change looks right, the idea/convention is that internally within Zephyr codebase, we use zsock_* namespaced API.
Please deal with this line, it requires extra parens and wrapping. |
By using the Zephyr-native zsock_ family of types and functions, these drivers will be decoupled from NET_SOCKETS_POSIX_NAMES. Signed-off-by: Adam Porter <[email protected]>
@jukkar There were two issues, first was that this driver used both Second issue was that the use of POSIX types forced the dependency on Currently At least with this change, I can compile my application without |
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.
LGTM. Thank you for submitting this change.
By using the Zephyr-native zsock_ family of types and functions, these
drivers will be decoupled from NET_SOCKETS_POSIX_NAMES.
This should help resolve part of #26033
Signed-off-by: Adam Porter [email protected]