getConfig.cpp (04c28fad78934cab0c4cb0b4ef9a20f9261b4c1e) getConfig.cpp (ff1b64f0e891de0d3cab831f6b90b52bb61de4b1)
1
2#include "getConfig.hpp"
3
4#include <phosphor-logging/lg2.hpp>
5#include <sdbusplus/asio/connection.hpp>
6
7#include <cstdlib>
8#include <memory>

--- 29 unchanged lines hidden (view full) ---

38 {
39 lg2::error("Error getting properties for {PATH}", "PATH", path,
40 "REDFISH_MESSAGE_ID",
41 std::string("OpenBMC.0.1.GetStorageInfoFail"));
42 return;
43 }
44
45 self->respData[path] = std::move(data);
1
2#include "getConfig.hpp"
3
4#include <phosphor-logging/lg2.hpp>
5#include <sdbusplus/asio/connection.hpp>
6
7#include <cstdlib>
8#include <memory>

--- 29 unchanged lines hidden (view full) ---

38 {
39 lg2::error("Error getting properties for {PATH}", "PATH", path,
40 "REDFISH_MESSAGE_ID",
41 std::string("OpenBMC.0.1.GetStorageInfoFail"));
42 return;
43 }
44
45 self->respData[path] = std::move(data);
46 },
46 },
47 owner, path, "org.freedesktop.DBus.Properties", "GetAll",
48 emmcConfigInterface);
49}
50
51void GetStorageConfiguration::getConfiguration()
52{
53 std::shared_ptr<GetStorageConfiguration> self = shared_from_this();
54 dbusConnection->async_method_call(

--- 15 unchanged lines hidden (view full) ---

70 {
71 if (interface.compare(emmcConfigInterface) == 0)
72 {
73 /* Get the properties exposed by this interface. */
74 self->getStorageInfo(objPath, objOwner);
75 }
76 }
77 }
47 owner, path, "org.freedesktop.DBus.Properties", "GetAll",
48 emmcConfigInterface);
49}
50
51void GetStorageConfiguration::getConfiguration()
52{
53 std::shared_ptr<GetStorageConfiguration> self = shared_from_this();
54 dbusConnection->async_method_call(

--- 15 unchanged lines hidden (view full) ---

70 {
71 if (interface.compare(emmcConfigInterface) == 0)
72 {
73 /* Get the properties exposed by this interface. */
74 self->getStorageInfo(objPath, objOwner);
75 }
76 }
77 }
78 },
78 },
79 mapper::busName, mapper::path, mapper::interface, mapper::subtree, "/",
80 0, std::vector<const char*>(1, emmcConfigInterface));
81}
82
83GetStorageConfiguration::~GetStorageConfiguration()
84{
85 callback(respData);
86}
87
88} // namespace estoraged
79 mapper::busName, mapper::path, mapper::interface, mapper::subtree, "/",
80 0, std::vector<const char*>(1, emmcConfigInterface));
81}
82
83GetStorageConfiguration::~GetStorageConfiguration()
84{
85 callback(respData);
86}
87
88} // namespace estoraged