X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Funit.h;h=6893b689a925b51b583c1c7198e8031411103ad5;hp=79f15103baaf65cba3c1db22ebf9c1495d27927f;hb=a43757462acaffa902417a9876486763d0b7ed58;hpb=07672f492ef085a9143ce3535700c0d4e83173de diff --git a/src/unit.h b/src/unit.h index 79f15103b..6893b689a 100644 --- a/src/unit.h +++ b/src/unit.h @@ -39,6 +39,7 @@ typedef enum UnitDependency UnitDependency; #include "socket-util.h" #include "execute.h" #include "condition.h" +#include "install.h" enum UnitType { UNIT_SERVICE = 0, @@ -192,6 +193,9 @@ struct Meta { /* Error code when we didn't manage to load the unit (negative) */ int load_error; + /* Cached unit file state */ + UnitFileState unit_file_state; + /* Garbage collect us we nobody wants or requires us anymore */ bool stop_when_unneeded; @@ -523,6 +527,8 @@ void unit_trigger_on_failure(Unit *u); bool unit_condition_test(Unit *u); +UnitFileState unit_get_unit_file_state(Unit *u); + const char *unit_load_state_to_string(UnitLoadState i); UnitLoadState unit_load_state_from_string(const char *s);