diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-05-28 21:33:10 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-06-06 10:53:56 +0200 |
commit | bbf5fd8e41b1abdf03c8ab463a2c9af7c7dc64d8 (patch) | |
tree | 980a335d3b5a5de8f4a9adf4affd26845b67b0e0 /src/core/unit.h | |
parent | core: move destruction of old time event sources to manager_setup_time_change() (diff) | |
download | systemd-bbf5fd8e41b1abdf03c8ab463a2c9af7c7dc64d8.tar.xz systemd-bbf5fd8e41b1abdf03c8ab463a2c9af7c7dc64d8.zip |
core: subscribe to /etc/localtime timezone changes and update timer elapsation accordingly
Fixes: #8233
This is our first real-life usecase for the new sd_event_add_inotify()
calls we just added.
Diffstat (limited to '')
-rw-r--r-- | src/core/unit.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/unit.h b/src/core/unit.h index 76270a0a7c..32bdd10643 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -516,6 +516,9 @@ typedef struct UnitVTable { /* Called whenever CLOCK_REALTIME made a jump */ void (*time_change)(Unit *u); + /* Called whenever /etc/localtime was modified */ + void (*timezone_change)(Unit *u); + /* Returns the next timeout of a unit */ int (*get_timeout)(Unit *u, usec_t *timeout); |