From 59b86cd72075cab98470a02267c78c6e361ba11c Mon Sep 17 00:00:00 2001 From: Dhruvaraj Subhashchandran Date: Thu, 13 Apr 2017 00:19:44 -0500 Subject: Add class and stub for fru fault monitor application This application waits for new fault entries and resolution of exiting faults to assert or deassert LED for the corresponding FRUs, respectively. Change-Id: I92ead0c8d3132dd7a6740b536231d6588ac42471 Signed-off-by: Dhruvaraj Subhashchandran --- fault-monitor/fru-fault-monitor.cpp | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 fault-monitor/fru-fault-monitor.cpp (limited to 'fault-monitor/fru-fault-monitor.cpp') diff --git a/fault-monitor/fru-fault-monitor.cpp b/fault-monitor/fru-fault-monitor.cpp new file mode 100644 index 0000000..1213128 --- /dev/null +++ b/fault-monitor/fru-fault-monitor.cpp @@ -0,0 +1,38 @@ +#include "fru-fault-monitor.hpp" +namespace phosphor +{ +namespace led +{ +namespace fru +{ +namespace fault +{ +namespace monitor +{ + +void action(sdbusplus::bus::bus& bus, + const std::string& unit, + bool assert) +{ + return; +} + +int Add::created(sd_bus_message* msg, + void* data, + sd_bus_error* retError) +{ + return 0; +} + +int Remove::removed(sd_bus_message* msg, + void* data, + sd_bus_error* retError) +{ + return 0; +} + +}//namespace monitor +}//namespace fault +}//namespace fru +}//namespace led +}//namespace phosphor -- cgit v1.2.1