Brad Bishop | 4239432 | 2017-06-15 10:39:38 -0400 | [diff] [blame] | 1 | #pragma once |
2 | |||||
3 | #include "sdevent/event.hpp" | ||||
4 | |||||
5 | namespace phosphor | ||||
6 | { | ||||
7 | namespace fan | ||||
8 | { | ||||
9 | namespace util | ||||
10 | { | ||||
11 | /** @class SDEvent | ||||
12 | * @brief DBus access delegate implementation for sdevent. | ||||
13 | */ | ||||
14 | class 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 |