Commit 0cef84ca authored by Max Kellermann's avatar Max Kellermann

zeroconf/AvahiPoll: rename "timer" to "event"

parent 56c0733b
......@@ -78,7 +78,7 @@ private:
};
struct AvahiTimeout final {
TimerEvent timer;
TimerEvent event;
const AvahiTimeoutCallback callback;
void *const userdata;
......@@ -87,17 +87,17 @@ public:
AvahiTimeout(const struct timeval *tv,
AvahiTimeoutCallback _callback, void *_userdata,
EventLoop &_loop)
:timer(_loop, BIND_THIS_METHOD(OnTimeout)),
:event(_loop, BIND_THIS_METHOD(OnTimeout)),
callback(_callback), userdata(_userdata) {
if (tv != nullptr)
timer.Schedule(ToSteadyClockDuration(*tv));
event.Schedule(ToSteadyClockDuration(*tv));
}
static void TimeoutUpdate(AvahiTimeout *t, const struct timeval *tv) {
if (tv != nullptr)
t->timer.Schedule(ToSteadyClockDuration(*tv));
t->event.Schedule(ToSteadyClockDuration(*tv));
else
t->timer.Cancel();
t->event.Cancel();
}
static void TimeoutFree(AvahiTimeout *t) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment