Fan control dbus busname and object path
Add fan control's default dbus busname and object path to use or what's
provided thru configure. The fan control manager requests the busname
after all the zones are created.
Tested:
Found the requested busname for a zone in the busctl list
Change-Id: I8ee1e9e4094dcec958e8ae81ad4299357b8f792d
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/manager.cpp b/control/manager.cpp
index 6994f91..c99f4a3 100644
--- a/control/manager.cpp
+++ b/control/manager.cpp
@@ -19,6 +19,7 @@
#include <phosphor-logging/elog-errors.hpp>
#include <xyz/openbmc_project/Common/error.hpp>
#include <unistd.h>
+#include "config.h"
#include "manager.hpp"
#include "utility.hpp"
#include "sdbusplus.hpp"
@@ -106,6 +107,7 @@
}
}
+ bus.request_name(CONTROL_BUSNAME);
}