diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-10-13 02:15:41 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-10-13 02:15:41 +0200 |
commit | 52661efd21608dc7e0ac26b714a9254ed6180ddb (patch) | |
tree | 5f64764566711e6a38a664cfc0ee9f9a997e4857 /src/unit.h | |
parent | e04aad61bb5eff117e51631727a3ef2807c75d6b (diff) |
unit: add minimal condition checker for unit startup
Diffstat (limited to 'src/unit.h')
-rw-r--r-- | src/unit.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unit.h b/src/unit.h index 605fa3774d..fa869ece8f 100644 --- a/src/unit.h +++ b/src/unit.h @@ -38,6 +38,7 @@ typedef enum UnitDependency UnitDependency; #include "list.h" #include "socket-util.h" #include "execute.h" +#include "condition.h" #define DEFAULT_TIMEOUT_USEC (60*USEC_PER_SEC) #define DEFAULT_RESTART_USEC (100*USEC_PER_MSEC) @@ -154,6 +155,9 @@ struct Meta { usec_t job_timeout; + /* Conditions to check */ + LIST_HEAD(Condition, conditions); + dual_timestamp inactive_exit_timestamp; dual_timestamp active_enter_timestamp; dual_timestamp active_exit_timestamp; |