1 #include "config.h" 2 3 #ifdef MONITOR_OPERATIONAL_STATUS 4 #include "operational-status-monitor.hpp" 5 #else 6 #include "fru-fault-monitor.hpp" 7 #endif 8 9 int main(void) 10 { 11 /** @brief Dbus constructs used by Fault Monitor */ 12 sdbusplus::bus::bus bus = sdbusplus::bus::new_default(); 13 14 #ifdef MONITOR_OPERATIONAL_STATUS 15 phosphor::led::Operational::status::monitor::Monitor monitor(bus); 16 #else 17 phosphor::led::fru::fault::monitor::Add monitor(bus); 18 #endif 19 /** @brief Wait for client requests */ 20 while (true) 21 { 22 /** @brief process dbus calls / signals discarding unhandled */ 23 bus.process_discard(); 24 bus.wait(); 25 } 26 return 0; 27 } 28