manager: introduce MANAGER_IS_FINISHED() macro
authorLennart Poettering <lennart@poettering.net>
Mon, 20 Nov 2017 20:24:59 +0000 (21:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 21 Nov 2017 10:01:34 +0000 (11:01 +0100)
commit49d5666cc500d0efa2fd800403ac735707f976ed
tree5979223e8b3a58d5e64394591f09bcbac5e28dd5
parent713f6f901db285602ff88ebf1dcd4631293e85c1
manager: introduce MANAGER_IS_FINISHED() macro

Let's make our finished checks a bit more readable. Checking the
timestamp is not entirely obvious, hence let's abstract that a bit by
adding a macro that shows what we are doing here, not how we doing it.

This is particularly useful if we want to change the definition of
"finished" later on, in particular, when we try to fix #7023.
src/core/dbus-manager.c
src/core/manager.c
src/core/manager.h