-
Notifications
You must be signed in to change notification settings - Fork 66
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
cloud: add oc_cloud_manager_stop_v1 function #620
Conversation
🎉 Thank you for your code contribution! To guarantee the change/addition is conformant to the OCF Specification, we would like to ask you to execute OCF Conformance Testing of your change ☝️ when your work is ready to be reviewed. ℹ️ To verify your latest change (e9346de), label this PR with |
WalkthroughThe recent updates focus on enhancing cloud configuration management in the API. These changes introduce new functionalities to improve flexibility and robustness in handling cloud interactions. Key enhancements include checking for existing cloud configurations, providing the option to stop cloud registrations with a reset capability, and conditional initialization of registration contexts. These updates aim to offer more control over cloud configuration settings based on specific requirements. Changes
Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (7)
Files skipped from review as they are similar to previous changes (6)
Additional Context UsedAST-based Instructions (1)
Additional comments not posted (4)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
e9346de
to
55ac64e
Compare
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.
Actionable comments posted: 1
55ac64e
to
feacdc6
Compare
The function enables the caller to stop the cloud manager, but without clearing the cloud configuration.
34c8ba0
to
d7089cf
Compare
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.
Actionable comments posted: 0
Actionable comments outside the diff hunks (1)
api/cloud/oc_cloud.c (1)
Line range hint
153-153
: Replacememset
withmemset_s
to ensure buffer boundaries are respected and prevent potential buffer overflows.- memset(ctx->cloud_ep, 0, sizeof(oc_endpoint_t)); + memset_s(ctx->cloud_ep, sizeof(oc_endpoint_t), 0, sizeof(oc_endpoint_t));
Quality Gate passedIssues Measures |
The function enables the caller to stop the cloud manager, but without clearing the cloud configuration.
Summary by CodeRabbit
New Features
Bug Fixes