From 18150da316af22a7ddc468a7cdc015f5f40397e2 Mon Sep 17 00:00:00 2001 From: Raptor Engineering Development Team Date: Sat, 12 May 2018 21:29:04 -0500 Subject: Make isValid public --- utils.hpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/utils.hpp b/utils.hpp index 878b05a..1e8f88e 100644 --- a/utils.hpp +++ b/utils.hpp @@ -61,6 +61,14 @@ class ServiceCache { sdbusplus::message::message newMethodCall(sdbusplus::bus::bus& bus, const char *intf, const char *method); + + /** @brief Check to see if the current cache is valid + * + * @param[in] bus - The bus used for the service lookup + * @return True if the cache is valid false otherwise. + */ + bool isValid(sdbusplus::bus::bus& bus) const; + private: /** @brief DBUS interface provided by the service */ const std::string intf; @@ -70,13 +78,6 @@ class ServiceCache { std::experimental::optional cachedService; /** @brief The name of the bus used in the service lookup */ std::experimental::optional cachedBusName; - - /** @brief Check to see if the current cache is valid - * - * @param[in] bus - The bus used for the service lookup - * @return True if the cache is valid false otherwise. - */ - bool isValid(sdbusplus::bus::bus& bus) const; }; /** -- cgit v1.2.1