William A. Kennington III | dcc08b6 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <sdeventplus/internal/sdevent.hpp> |
| 4 | #include <sdeventplus/internal/sdref.hpp> |
| 5 | #include <type_traits> |
| 6 | |
| 7 | namespace sdeventplus |
| 8 | { |
| 9 | |
| 10 | class Source |
| 11 | { |
| 12 | public: |
| 13 | Source(sd_event_source* source, SdEventInterface* intf = &sdevent_impl); |
| 14 | Source(sd_event_source* source, std::false_type, |
| 15 | SdEventInterface* intf = &sdevent_impl); |
| 16 | |
| 17 | private: |
| 18 | SdEventInterface* intf; |
| 19 | SdRef<sd_event_source> source; |
| 20 | }; |
| 21 | |
| 22 | } // namespace sdeventplus |