blob: ba40435006c5abfd04927b25b565c9d0824ddc2b [file] [log] [blame]
Brad Bishop42394322017-06-15 10:39:38 -04001#pragma once
2
3#include "sdevent/event.hpp"
4
5namespace phosphor
6{
7namespace fan
8{
9namespace util
10{
11/** @class SDEvent
12 * @brief DBus access delegate implementation for sdevent.
13 */
14class SDEvent
15{
16 public:
17 /** @brief Get the event loop. */
18 static auto& getEvent()
19 {
20 static auto event = sdevent::event::newDefault();
21 return event;
22 }
23};
24
25} // namespace util
26} // namespace fan
27} // namespace phosphor