From c1a695d1acc7bf5a70ee0791f36a253951c46251 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 22 Feb 2021 14:31:09 +0100 Subject: [PATCH] zeroconf/avahi/Poll: add method GetEventLoop() --- src/zeroconf/avahi/Poll.hxx | 4 ++++ 1 file changed, 4 insertions(+) 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,