summaryrefslogtreecommitdiff
path: root/src/unit.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-31 18:28:02 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-31 18:28:02 +0200
commita43757462acaffa902417a9876486763d0b7ed58 (patch)
tree25b7bec4cdea2c75e977e5bb825789422764e9ea /src/unit.h
parent07672f492ef085a9143ce3535700c0d4e83173de (diff)
dbus: export unit file state
Diffstat (limited to 'src/unit.h')
-rw-r--r--src/unit.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/unit.h b/src/unit.h
index 79f15103ba..6893b689a9 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);