diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-09-28 13:22:02 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-09-28 15:09:34 -0400 |
commit | 978c8b6347d61f5a792886ef1875a4df625fd65f (patch) | |
tree | efd1980b90d126c0987289ace1353adc7e9ab6b7 /src/basic/unit-name.h | |
parent | 9dc5db34adbd6fa3d2ac08d9610d401ba69cde93 (diff) | |
download | systemd-978c8b6347d61f5a792886ef1875a4df625fd65f.tar.gz systemd-978c8b6347d61f5a792886ef1875a4df625fd65f.tar.bz2 systemd-978c8b6347d61f5a792886ef1875a4df625fd65f.zip |
Move UnitActiveState to basic/
Preparation to allow systemctl to query the list of unit states.
Diffstat (limited to 'src/basic/unit-name.h')
-rw-r--r-- | src/basic/unit-name.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/basic/unit-name.h b/src/basic/unit-name.h index 28b3a555f3..b683597527 100644 --- a/src/basic/unit-name.h +++ b/src/basic/unit-name.h @@ -29,6 +29,7 @@ typedef enum UnitType UnitType; typedef enum UnitLoadState UnitLoadState; +typedef enum UnitActiveState UnitActiveState; typedef enum UnitDependency UnitDependency; enum UnitType { @@ -60,6 +61,17 @@ enum UnitLoadState { _UNIT_LOAD_STATE_INVALID = -1 }; +enum UnitActiveState { + UNIT_ACTIVE, + UNIT_RELOADING, + UNIT_INACTIVE, + UNIT_FAILED, + UNIT_ACTIVATING, + UNIT_DEACTIVATING, + _UNIT_ACTIVE_STATE_MAX, + _UNIT_ACTIVE_STATE_INVALID = -1 +}; + enum UnitDependency { /* Positive dependencies */ UNIT_REQUIRES, @@ -176,5 +188,8 @@ UnitType unit_type_from_string(const char *s) _pure_; const char *unit_load_state_to_string(UnitLoadState i) _const_; UnitLoadState unit_load_state_from_string(const char *s) _pure_; +const char *unit_active_state_to_string(UnitActiveState i) _const_; +UnitActiveState unit_active_state_from_string(const char *s) _pure_; + const char *unit_dependency_to_string(UnitDependency i) _const_; UnitDependency unit_dependency_from_string(const char *s) _pure_; |