]> git.ipfire.org Git - thirdparty/systemd.git/commit
manager: rework the timestamps logic, so that they are an enum-index array
authorLennart Poettering <lennart@poettering.net>
Mon, 20 Nov 2017 20:01:13 +0000 (21:01 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 21 Nov 2017 09:22:28 +0000 (10:22 +0100)
commit9f9f034271cf719ba7d6b763130ad7013844207c
tree771bc289a901aa0ec7d8c180a5fb46260da0ff12
parent172378e01bff23d27a1373f96913badbb30a61d8
manager: rework the timestamps logic, so that they are an enum-index array

This makes things quite a bit more systematic I think, as we can
systematically operate on all timestamps, for example for the purpose of
serialization/deserialization.

This rework doesn't necessarily make things shorter in the individual
lines, but it does reduce the line count a bit.

(This is useful particularly when we want to add additional timestamps,
for example to solve #7023)
src/core/dbus-manager.c
src/core/main.c
src/core/manager.c
src/core/manager.h
src/core/timer.c