Skip to content

Commit

Permalink
Merge pull request #552 from SunnySrivastava1984/WriteAPIOverDbus
Browse files Browse the repository at this point in the history
Add write keyword API and rename existing one
  • Loading branch information
jinuthomas authored Dec 18, 2024
2 parents 5028d9d + 68d265c commit 5c290ad
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion vpd-manager/src/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,19 @@ Manager::Manager(
// set callback to detect host state change.
registerHostStateChangeCallback();

// Register methods under com.ibm.VPD.Manager interface
// For backward compatibility. Should be depricated.
iFace->register_method(
"WriteKeyword",
[this](const sdbusplus::message::object_path i_path,
const std::string i_recordName, const std::string i_keyword,
const types::BinaryVector i_value) -> int {
return this->updateKeyword(
i_path, std::make_tuple(i_recordName, i_keyword, i_value));
});

// Register methods under com.ibm.VPD.Manager interface
iFace->register_method(
"UpdateKeyword",
[this](const types::Path i_vpdPath,
const types::WriteVpdParams i_paramsToWriteData) -> int {
return this->updateKeyword(i_vpdPath, i_paramsToWriteData);
Expand Down

0 comments on commit 5c290ad

Please sign in to comment.