-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add ProcedureObjectName and ProcedureObjectValue to OsConfig Schema #856
base: dev
Are you sure you want to change the base?
Conversation
4b190ab
to
f632d24
Compare
@microsoft-github-policy-service agree company="Microsoft" |
17970d9
to
8beb725
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.
🕐
8beb725
to
9237261
Compare
payloadSize = (int)strlen(serializedValue); | ||
if (NULL != (payloadString = malloc(payloadSize + 1))) | ||
{ | ||
const OsConfigComponent *component = NULL; |
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.
Pure C style requires all variables locally declared withing a statement of a function to be defined at the beginning/top of the statement. To respect this old style and for consistency with existing code, can you please move the definition on line 421 at top, between lines 389 and 396? Please repeat the same for all other locals that would fall into this case.
payloadSize = (int)strlen(serializedValue); | ||
if (NULL != (payloadString = malloc(payloadSize + 1))) | ||
{ | ||
const OsConfigComponent *component = NULL; |
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.
LogInfo(context, GetLog(), "[%s] MmiSet(%s, %s, '%.*s', %d) returned %d", | ||
who, g_componentName, objectName, payloadSize, payloadString, payloadSize, mpiResult); | ||
|
||
} |
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.
Please do not do this. This is the role of the Modules Manager. Adapters cannot call MMI directly. Adapters can only call the MPI.
Please remove this entire function and keep the NRP existing functions for get and set that talk to OSConfig over the MPI REST API.
Description
Add ProcedureObjectName and ProcedureObjectValue fields to OsConfig schema and OsConfigResource
Add support for multiple Components in OsConfigResource.
Checklist
dev
branch prior to this PR submission.dev
branch.