diff options
Diffstat (limited to 'src/shared/unit-name.h')
-rw-r--r-- | src/shared/unit-name.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/unit-name.h b/src/shared/unit-name.h index 7be346590e..d7528a3ac7 100644 --- a/src/shared/unit-name.h +++ b/src/shared/unit-name.h @@ -44,7 +44,7 @@ enum UnitType { }; enum UnitLoadState { - UNIT_STUB, + UNIT_STUB = 0, UNIT_LOADED, UNIT_ERROR, UNIT_MERGED, @@ -53,9 +53,11 @@ enum UnitLoadState { _UNIT_LOAD_STATE_INVALID = -1 }; +extern const char* const unit_type_table[]; const char *unit_type_to_string(UnitType i); UnitType unit_type_from_string(const char *s); +extern const char* const unit_load_state_table[]; const char *unit_load_state_to_string(UnitLoadState i); UnitLoadState unit_load_state_from_string(const char *s); |