From 1febc28a1b9b72c805b74c28c8b505e292591fc5 Mon Sep 17 00:00:00 2001 From: Matthew Barth Date: Wed, 12 Apr 2017 11:33:39 -0500 Subject: Create phosphor-dbus-monitor application Application is created allowing for a log_error action to be performed Change-Id: I6890fff7ace708e80c79607beceedc926c05ec3d Signed-off-by: Matthew Barth --- src/main.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/main.cpp (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..6d1a071 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,18 @@ +#include +#include "monitor.hpp" + +int main(void) +{ + auto bus = sdbusplus::bus::new_default(); + + phosphor::dbus::monitoring::Monitor monitor(bus); + + // Keep application running + while (true) + { + bus.process_discard(); + bus.wait(); + } + + return -1; +} -- cgit v1.2.1