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 <msbarth@us.ibm.com>
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 <sdbusplus/bus.hpp>
+#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;
+}