regulators: Modify Manager to use Services
Modify the Manager class to use the new Services interface.
Tested:
* Verified all journal messages logged by Manager still work.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: Ifaa1dfe67e4ab33ea42e9ee1daf65a5663087a0d
diff --git a/phosphor-regulators/src/manager.hpp b/phosphor-regulators/src/manager.hpp
index 1763f92..b52489e 100644
--- a/phosphor-regulators/src/manager.hpp
+++ b/phosphor-regulators/src/manager.hpp
@@ -15,6 +15,7 @@
*/
#pragma once
+#include "services.hpp"
#include "system.hpp"
#include <interfaces/manager_interface.hpp>
@@ -60,7 +61,7 @@
* Constructor
* Creates a manager over the regulators.
*
- * @param bus the dbus bus
+ * @param bus the D-Bus bus
* @param event the sdevent event
*/
Manager(sdbusplus::bus::bus& bus, const sdeventplus::Event& event);
@@ -154,7 +155,7 @@
void loadConfigFile();
/**
- * The dbus bus
+ * The D-Bus bus
*/
sdbusplus::bus::bus& bus;
@@ -164,6 +165,11 @@
sdeventplus::Event eventLoop;
/**
+ * System services like error logging and the journal.
+ */
+ BMCServices services;
+
+ /**
* List of event timers
*/
std::vector<Timer> timers{};