summaryrefslogtreecommitdiffstats
path: root/control/main.cpp
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2017-04-10 14:15:53 -0500
committerMatt Spinler <spinler@us.ibm.com>2017-04-26 12:48:32 -0500
commite10416eccd32893b68e7ec5fcaacc6520c014d4a (patch)
tree8986f5aeb86a1788e37c1022ef75633c43339578 /control/main.cpp
parent48087591e350c013cfeb937ba8a87d0989374882 (diff)
downloadphosphor-fan-presence-e10416eccd32893b68e7ec5fcaacc6520c014d4a.tar.gz
phosphor-fan-presence-e10416eccd32893b68e7ec5fcaacc6520c014d4a.zip
Fan control: Add Manager class and fan data
Create the fan manager class. Check in the fan zone data as a normal file. In a future commit this will be generated during the compile. It is required now for review and so everything compiles. Change-Id: I5733b81db80c5e072abdbffd42e335fa46c61ef8 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'control/main.cpp')
-rw-r--r--control/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/control/main.cpp b/control/main.cpp
index e332dda..08a7dc9 100644
--- a/control/main.cpp
+++ b/control/main.cpp
@@ -14,11 +14,14 @@
* limitations under the License.
*/
#include <sdbusplus/bus.hpp>
+#include "manager.hpp"
int main(int argc, char* argv[])
{
auto bus = sdbusplus::bus::new_default();
+ phosphor::fan::control::Manager manager(bus);
+
while (true)
{
bus.process_discard();
OpenPOWER on IntegriCloud