diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-10-06 02:33:40 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-10-06 02:33:40 +0200 |
commit | 71fad6751434f06485a744d41be2d807303c1184 (patch) | |
tree | 27723f8bbab9a2a808e0beab10c6e2605f74f1de /src/unit.h | |
parent | 647f1fafb5f456b80bb799d07d345ce7fd2308ee (diff) |
systemctl: require correctly formed unit names when enabling units
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); |