Skip to content
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

SetEnv added for plugin Config as well #1764

Merged
merged 6 commits into from
Sep 30, 2024

Conversation

HaseenaSainul
Copy link
Contributor

No description provided.

Copy link
Contributor

@pwielders pwielders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See: #1761 which also extends the data flowing to PluginProcess. Prefer to keep it all strong typed (use a C struct or class) and send each element as a seperate (yet repeating) entry on the command line. See inline comments.

I think it is good to also first include thepull request sted above as this might otherswise be difficult to merge (both add functionality in the same areas)

Source/plugins/IShell.h Outdated Show resolved Hide resolved
Source/com/Communicator.h Outdated Show resolved Hide resolved
Source/Thunder/PluginServer.h Outdated Show resolved Hide resolved
@HaseenaSainul HaseenaSainul force-pushed the development/METROL-606 branch 2 times, most recently from 193d426 to b5c2081 Compare September 25, 2024 08:34
Metadata::Service result;
GetMetadata(result);
result.ToString(info);
return (Core::ERROR_NONE);
}
std::vector<RPC::Object::Environment> SubstituteList(const std::vector<RPC::Object::Environment>& environments) const {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we want to create a "new" list. Can we not just reuse the old list ? It ssaves a lot of memory and if we call this the assumption is that there is no need to "save" the old one..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed

}
return environmentList;
}
static RPC::Object::Environment Info(const string& env, RPC::Object::Environment::Scope overriding)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be a parser of a parameter received (env) to an RPC::Object::Environment, why could this not be a constructor of the RPC::Object::Environment class?
Maybe an idea to also creat the string from the parameter there (in the RPC::Object::Environment) as well. A ToStringMethod, that concattenaats the keyand value, and escaped the '" ?

@pwielders pwielders merged commit 0bffff0 into rdkcentral:master Sep 30, 2024
55 of 56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants