typedef enum TargetState {
TARGET_DEAD,
TARGET_ACTIVE,
- _TARGET_STATE_MAX
+ _TARGET_STATE_MAX,
+ _TARGET_STATE_INVALID = -1
} TargetState;
struct Target {
Meta meta;
- TargetState state;
+ TargetState state, deserialized_state;
};
extern const UnitVTable target_vtable;
+int target_get_runlevel(Target *t);
+
+const char* target_state_to_string(TargetState i);
+TargetState target_state_from_string(const char *s);
+
#endif