summaryrefslogtreecommitdiffstats
path: root/user_channel
diff options
context:
space:
mode:
authorJohnathan Mantey <johnathanx.mantey@intel.com>2018-12-11 13:53:33 -0800
committerJohnathan Mantey <johnathanx.mantey@intel.com>2019-02-04 12:35:37 -0800
commit2dfe7f8da32764d604b3f6bf893afa9b29ff9a7c (patch)
treebe3fe5abf08870daaf983772e6184bbc61757f88 /user_channel
parent4c0435a22df32b71236a2f59fd8e02cce7f5fa31 (diff)
downloadphosphor-host-ipmid-2dfe7f8da32764d604b3f6bf893afa9b29ff9a7c.tar.gz
phosphor-host-ipmid-2dfe7f8da32764d604b3f6bf893afa9b29ff9a7c.zip
Move public variables to the class private space.
Moved two variables only used by the class into it's private variable space. Highlighted a method prototype that was buried within the variable list. Change-Id: Ie90d6b7db85ce1a9e445de87d612c41b4337d7fc Signed-off-by: Johnathan Mantey <johnathanx.mantey@intel.com>
Diffstat (limited to 'user_channel')
-rw-r--r--user_channel/channel_mgmt.hpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/user_channel/channel_mgmt.hpp b/user_channel/channel_mgmt.hpp
index 44aaed6..89e069e 100644
--- a/user_channel/channel_mgmt.hpp
+++ b/user_channel/channel_mgmt.hpp
@@ -232,16 +232,13 @@ class ChannelConfig
*/
int writeChannelVolatileData();
+ private:
uint32_t signalFlag = 0;
-
std::unique_ptr<boost::interprocess::named_recursive_mutex> channelMutex{
nullptr};
-
- private:
std::array<ChannelProperties, maxIpmiChannels> channelData;
std::time_t nvFileLastUpdatedTime;
std::time_t voltFileLastUpdatedTime;
- std::time_t getUpdatedFileTime(const std::string& fileName);
boost::interprocess::file_lock mutexCleanupLock;
sdbusplus::bus::bus bus;
bool signalHndlrObjectState = false;
@@ -409,6 +406,15 @@ class ChannelConfig
*/
void processChAccessPropChange(const std::string& path,
const DbusChObjProperties& chProperties);
+
+ /** @brief function to retrieve last modification time for the named file
+ *
+ * @param[in] fileName - the name of the file for which to acquire
+ * timestamp data
+ *
+ * @return time the file was last modified
+ */
+ std::time_t getUpdatedFileTime(const std::string& fileName);
};
} // namespace ipmi
OpenPOWER on IntegriCloud