summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-02-22 14:31:09 +0100
committerMax Kellermann <max@musicpd.org>2021-02-22 14:31:10 +0100
commitc1a695d1acc7bf5a70ee0791f36a253951c46251 (patch)
treef69a197e43699f840fde12c0bcbf963913a1358d
parentec05056e387b4e98fb4c9561f17dcd64192ad243 (diff)
zeroconf/avahi/Poll: add method GetEventLoop()
-rw-r--r--src/zeroconf/avahi/Poll.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zeroconf/avahi/Poll.hxx b/src/zeroconf/avahi/Poll.hxx
index 321be9ecb..80a3838c1 100644
--- a/src/zeroconf/avahi/Poll.hxx
+++ b/src/zeroconf/avahi/Poll.hxx
@@ -33,6 +33,10 @@ public:
MyAvahiPoll(const MyAvahiPoll &) = delete;
MyAvahiPoll &operator=(const MyAvahiPoll &) = delete;
+ EventLoop &GetEventLoop() const noexcept {
+ return event_loop;
+ }
+
private:
static AvahiWatch *WatchNew(const AvahiPoll *api, int fd,
AvahiWatchEvent event,