diff options
Diffstat (limited to 'src/unit.h')
-rw-r--r-- | src/unit.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/unit.h b/src/unit.h index 47a1eb6350..afae580409 100644 --- a/src/unit.h +++ b/src/unit.h @@ -39,7 +39,6 @@ typedef enum UnitDependency UnitDependency; #include "socket-util.h" #include "execute.h" -#define UNIT_NAME_MAX 256 #define DEFAULT_TIMEOUT_USEC (60*USEC_PER_SEC) #define DEFAULT_RESTART_USEC (100*USEC_PER_MSEC) @@ -504,6 +503,9 @@ bool unit_pending_active(Unit *u); int unit_add_default_target_dependency(Unit *u, Unit *target); +UnitType unit_name_to_type(const char *n); +bool unit_name_is_valid(const char *n); + const char *unit_load_state_to_string(UnitLoadState i); UnitLoadState unit_load_state_from_string(const char *s); |