control - Reduce lookups of timer groups preloading
To further reduce the possible amount of dbus traffic of preloading
multiple groups that could share the same service, process all the
groups together. This allows multiple groups that share the same service
(and possibly object managers) to be more efficiently loaded into the
cache.
Change-Id: Ie7eec37a8938cfcd05c36e1dad5c980043451cb0
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/json/manager.hpp b/control/json/manager.hpp
index 4c8c72c..7da379a 100644
--- a/control/json/manager.hpp
+++ b/control/json/manager.hpp
@@ -690,11 +690,11 @@
void dumpCache(json& data);
/**
- * @brief Add a group to the cache dataset.
+ * @brief Add a list of groups to the cache dataset.
*
- * @param[in] group - The group to add
+ * @param[in] groups - The groups to add
*/
- void addGroup(const Group& group);
+ void addGroups(const std::vector<Group>& groups);
};
} // namespace phosphor::fan::control::json