sd-event: add a single implementation of an event source that runs on clock changes
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Mar 2022 15:28:38 +0000 (16:28 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Mar 2022 22:53:34 +0000 (23:53 +0100)
commitec75e8e07a0ad972e0c40e0a187e15a8d4fb3d66
tree0d6309c1a74cf58a8b4c21a2f1cc198e901f4b17
parent7cb08ea80f66dbaadfa0350cb09adf155449bcc6
sd-event: add a single implementation of an event source that runs on clock changes

We basically had the same code in three places. Let's unify it in a
common helper function.

event_add_time_change() might be something we should add to the official
sd-event API sooner or later, given its general usefulness.
src/core/manager.c
src/core/manager.h
src/libsystemd/sd-event/event-util.c
src/libsystemd/sd-event/event-util.h
src/resolve/resolved-manager.c
src/timesync/timesyncd-manager.c
src/timesync/timesyncd-manager.h