summaryrefslogtreecommitdiffstats
path: root/src/sdevent.hpp
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-06-04 22:32:12 -0400
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-06-19 16:28:06 -0400
commitd9c1fabbed87b29d96f0afb05bdc4a1d61c2ced4 (patch)
treecdb3f6371dde97efaaf10fe5c43e729c0063b7aa /src/sdevent.hpp
parentce4fbe111da9375e9614e018547e90092df6ec4b (diff)
downloadphosphor-dbus-monitor-d9c1fabbed87b29d96f0afb05bdc4a1d61c2ced4.tar.gz
phosphor-dbus-monitor-d9c1fabbed87b29d96f0afb05bdc4a1d61c2ced4.zip
Attach sdevent mainloop to dbus
Switch from sd_bus process to sd_event run so that sd event handlers are invoked. Change-Id: If7c1f046f30cc845c6e9fcc72eb99c5bdfb36052 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'src/sdevent.hpp')
-rw-r--r--src/sdevent.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sdevent.hpp b/src/sdevent.hpp
index be8b510..dc912c1 100644
--- a/src/sdevent.hpp
+++ b/src/sdevent.hpp
@@ -3,6 +3,8 @@
#include "sdevent/event.hpp"
#include "sdevent/timer.hpp"
+struct Loop;
+
namespace phosphor
{
namespace dbus
@@ -29,6 +31,8 @@ class SDEvent
{
return getEvent().now();
}
+
+ friend Loop;
};
/** @class SDEventTimer
OpenPOWER on IntegriCloud