summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-04-12 11:33:39 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-05-07 12:02:56 -0400
commit1febc28a1b9b72c805b74c28c8b505e292591fc5 (patch)
treebb6d2af7706aa4e501fd952664e62f40417f9526 /src/main.cpp
parentb86374d9b6bf0c6fe78d8d87a8748138056b3ac3 (diff)
downloadphosphor-dbus-monitor-1febc28a1b9b72c805b74c28c8b505e292591fc5.tar.gz
phosphor-dbus-monitor-1febc28a1b9b72c805b74c28c8b505e292591fc5.zip
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>
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp18
1 files changed, 18 insertions, 0 deletions
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;
+}
OpenPOWER on IntegriCloud