X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Funit.h;h=afae580409d90a0bb753b2ad29349cf607a7206c;hb=71fad6751434f06485a744d41be2d807303c1184;hp=15e7fedd0e550a0bbd122219c4eceda22464710f;hpb=fdf20a316035779bbec469e11d73c7544acbf30f;p=elogind.git diff --git a/src/unit.h b/src/unit.h index 15e7fedd0..afae58040 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) @@ -338,7 +337,7 @@ struct UnitVTable { void (*shutdown)(Manager *m); /* When sending out PropertiesChanged signal, which properties - * shall be invalidated? This is a NUL seperated list of + * shall be invalidated? This is a NUL separated list of * strings, to minimize relocations a little. */ const char *bus_invalidating_properties; @@ -499,6 +498,14 @@ void unit_reset_failed(Unit *u); Unit *unit_following(Unit *u); +bool unit_pending_inactive(Unit *u); +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);