-
Notifications
You must be signed in to change notification settings - Fork 8.3k
[breaking change] shell: Add user data argument to shell_set_bypass #100311
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
base: main
Are you sure you want to change the base?
Conversation
Allow passing some context to the shell bypass callback function by providing a void pointer user data argument. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
de-nordic
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.
Flash shell changes look ok.
|
This was discussed in the Arch WG without any objections raised, see comment on #97476 (comment) |
| * @param[in] user_data Bypass callback user data. | ||
| */ | ||
| void shell_set_bypass(const struct shell *sh, shell_bypass_cb_t bypass); | ||
| void shell_set_bypass(const struct shell *sh, shell_bypass_cb_t bypass, void *user_data); |
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.
Can you add a test that uses shell_set_bypass? Even a build-only test can potentially catch future API changes.
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.
Added a test.
d6d7d63
b30515a to
d6d7d63
Compare
Add a test to the shell testsuite for validating shell_set_bypass. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Add an entry for the shell API change for shell_set_bypass. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
d6d7d63 to
edcfa7e
Compare
|
Simplified the test so SonarQube doesn't block. |
|



Allow passing some context to the shell bypass callback function by providing a void pointer user data argument.
Re-submission from #97187
Fixes #97476