diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2015-02-18 14:22:37 -0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-02-26 09:38:50 -0500 |
commit | 03455c2879699852b691903343e378c28992ff6a (patch) | |
tree | d7e7eaed8fc3ec9528e20d57f54c400b2dbb484a /src/core/manager.h | |
parent | e342b74468870f2e4f3e15f7277a0adea42183ca (diff) |
core: emit changes for NFailedUnits property
By notifying the clients when this property is changed it's possible to
allow "system health monitor" tools to get transitions like
running<->degraded. This is an alternative to send changes on the
SystemState property since the latter is more difficult to derive.
Diffstat (limited to 'src/core/manager.h')
-rw-r--r-- | src/core/manager.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/manager.h b/src/core/manager.h index 4e33ba63f4..a1caab4d4e 100644 --- a/src/core/manager.h +++ b/src/core/manager.h @@ -362,5 +362,7 @@ const char *manager_get_runtime_prefix(Manager *m); ManagerState manager_state(Manager *m); +void manager_update_failed_units(Manager *m, Unit *u, bool failed); + const char *manager_state_to_string(ManagerState m) _const_; ManagerState manager_state_from_string(const char *s) _pure_; |