blob: 9921a88b0a550d2f67942229df241b4ee2813bd9 [file] [log] [blame]
William A. Kennington IIIdcc08b62018-07-17 14:40:14 -07001#pragma once
2
3#include <sdeventplus/internal/sdevent.hpp>
4#include <sdeventplus/internal/sdref.hpp>
5#include <type_traits>
6
7namespace sdeventplus
8{
9
10class 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