blob: 92b332d2b64ee092bb8b276c1f245e0ef849d239 [file] [log] [blame]
#include "config.h"
#ifdef MONITOR_OPERATIONAL_STATUS
#include "operational-status-monitor.hpp"
#else
#include "fru-fault-monitor.hpp"
#endif
int main(void)
{
/** @brief Dbus constructs used by Fault Monitor */
sdbusplus::bus_t bus = sdbusplus::bus::new_default();
#ifdef MONITOR_OPERATIONAL_STATUS
phosphor::led::Operational::status::monitor::Monitor monitor(bus);
#else
phosphor::led::fru::fault::monitor::Add monitor(bus);
#endif
/** @brief Wait for client requests */
while (true)
{
/** @brief process dbus calls / signals discarding unhandled */
bus.process_discard();
bus.wait();
}
return 0;
}