diff options
author | Tom Joseph <tomjoseph@in.ibm.com> | 2017-03-09 12:34:35 +0530 |
---|---|---|
committer | Tom Joseph <tomjoseph@in.ibm.com> | 2017-03-15 16:14:58 +0530 |
commit | be703f71a3048c72ed567c397cd7caaf5f3d1bcf (patch) | |
tree | 407801458f8f36a03353564934ece9da909caa42 /utils.hpp | |
parent | 28c2e7350a7d22a8314598101085b04f2b1ba274 (diff) | |
download | phosphor-host-ipmid-be703f71a3048c72ed567c397cd7caaf5f3d1bcf.tar.gz phosphor-host-ipmid-be703f71a3048c72ed567c397cd7caaf5f3d1bcf.zip |
Modify set sensor reading command
The Set Sensor handling code is modified to use generated code
for CPU, Core & DIMM sensors with Presence & Functional
offset.
Change-Id: I3b7fa4da870b745873da4732d457d793f5549ada
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'utils.hpp')
-rw-r--r-- | utils.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/utils.hpp b/utils.hpp new file mode 100644 index 0000000..98be82a --- /dev/null +++ b/utils.hpp @@ -0,0 +1,21 @@ +#pragma once + +#include <sdbusplus/server.hpp> + +namespace ipmi +{ + +/** + * @brief Get the DBUS Service name for the input dbus path + * + * @param[in] bus - DBUS Bus Object + * @param[in] intf - DBUS Interface + * @param[in] path - DBUS Object Path + * + */ +std::string getService(sdbusplus::bus::bus& bus, + const std::string& intf, + const std::string& path); +} // namespace ipmi + + |