diff options
Diffstat (limited to 'powercap.hpp')
-rw-r--r-- | powercap.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/powercap.hpp b/powercap.hpp index ddf2a74..6a77c9d 100644 --- a/powercap.hpp +++ b/powercap.hpp @@ -35,8 +35,10 @@ public: * @param[in] occStatus - The occ status object */ PowerCap(sdbusplus::bus::bus &bus, - Status &occStatus) : + Status &occStatus, + const std::string& occMasterName = OCC_MASTER_NAME) : bus(bus), + occMasterName(occMasterName), occStatus(occStatus), pcapMatch( bus, @@ -100,6 +102,9 @@ private: /** @brief Reference to sdbus **/ sdbusplus::bus::bus& bus; + /** @brief The master occ name */ + std::string occMasterName; + /* @brief OCC Status object */ Status &occStatus; |