blob: 0b4a5fbc61688dc27823cadf90f3ff8a9d75de82 [file] [log] [blame]
Dhruvaraj Subhashchandran59b86cd2017-04-13 00:19:44 -05001#include "fru-fault-monitor.hpp"
2
3int main(void)
4{
5 /** @brief Dbus constructs used by Fault Monitor */
6 sdbusplus::bus::bus bus = sdbusplus::bus::new_default();
7
8 phosphor::led::fru::fault::monitor::Add monitor(bus);
9 /** @brief Wait for client requests */
10 while (true)
11 {
12 /** @brief process dbus calls / signals discarding unhandled */
13 bus.process_discard();
14 bus.wait();
15 }
16 return 0;
17}