summaryrefslogtreecommitdiffstats
path: root/fault-monitor/fru-fault-monitor.cpp
diff options
context:
space:
mode:
authorDhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>2017-04-13 00:19:44 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-05-23 11:02:40 +0000
commit59b86cd72075cab98470a02267c78c6e361ba11c (patch)
tree7e2bdb3dfd515f3e02eacc96319dfb8a4020b31d /fault-monitor/fru-fault-monitor.cpp
parentcd569d24cd46e0d6a68654b979b1ddd00bc86cd8 (diff)
downloadphosphor-led-manager-59b86cd72075cab98470a02267c78c6e361ba11c.tar.gz
phosphor-led-manager-59b86cd72075cab98470a02267c78c6e361ba11c.zip
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 <dhruvaraj@in.ibm.com>
Diffstat (limited to 'fault-monitor/fru-fault-monitor.cpp')
-rw-r--r--fault-monitor/fru-fault-monitor.cpp38
1 files changed, 38 insertions, 0 deletions
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
OpenPOWER on IntegriCloud