zeroconf/avahi/Poll: add method GetEventLoop()

This commit is contained in:
Max Kellermann 2021-02-22 14:31:09 +01:00
parent ec05056e38
commit c1a695d1ac

View File

@ -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,