sd-event: remove earliest_index/latest_index into common part of event source objects
authorLennart Poettering <lennart@poettering.net>
Mon, 23 Nov 2020 16:49:27 +0000 (17:49 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 1 Dec 2020 14:10:50 +0000 (15:10 +0100)
commitf41315fceb5208c496145cda2d6c865a5458ce44
tree051013716e4eb30243a702a94f57e5e11f34c8cb
parentcad143a8f26976a23e634d5e1ecfb7d7ba75c3bf
sd-event: remove earliest_index/latest_index into common part of event source objects

So far we used these fields to organize the earliest/latest timer event
priority queue.  In a follow-up commit we want to introduce ratelimiting
to event sources, at which point we want any kind of event source to be
able to trigger time wakeups, and hence they all need to be included in
the earliest/latest prioqs.  Thus, in preparation let's make this
generic.

No change in behaviour, just some shifting around of struct members from
the type-specific to the generic part.
src/libsystemd/sd-event/event-source.h
src/libsystemd/sd-event/sd-event.c