summaryrefslogtreecommitdiffstats
path: root/src/monitor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/monitor.hpp')
-rw-r--r--src/monitor.hpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/monitor.hpp b/src/monitor.hpp
new file mode 100644
index 0000000..2fc91b5
--- /dev/null
+++ b/src/monitor.hpp
@@ -0,0 +1,33 @@
+#pragma once
+
+#include <sdbusplus/bus.hpp>
+#include <sdbusplus/server.hpp>
+#include "events.hpp"
+
+namespace phosphor
+{
+namespace dbus
+{
+namespace monitoring
+{
+
+class Monitor
+{
+ public:
+ Monitor() = delete;
+ Monitor(const Monitor&) = delete;
+ Monitor(Monitor&&) = default;
+ Monitor& operator=(const Monitor&) = delete;
+ Monitor& operator=(Monitor&&) = default;
+ ~Monitor() = default;
+
+ explicit Monitor(sdbusplus::bus::bus& bus);
+
+ private:
+ sdbusplus::bus::bus& bus;
+
+};
+
+} // namespace monitoring
+} // namespace dbus
+} // namespace phosphor
OpenPOWER on IntegriCloud