chiark / gitweb /
manager: add newly created units to gc queue
[elogind.git] / target.h
index 4b04635f942a263bd4fd69381992629b3d9d25fb..5397d50d7c1069486cdef29e5c088025fb52b09a 100644 (file)
--- a/target.h
+++ b/target.h
@@ -36,11 +36,14 @@ typedef enum 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