chiark / gitweb /
Fix compilation issue; s/-NOENT/-ENOENT/
[elogind.git] / snapshot.h
index 78bcafa448c24075edb3e622f8b4c8419f49baf2..959a5090ecf318d0242191cf954b61788d55a660 100644 (file)
@@ -36,7 +36,7 @@ typedef enum SnapshotState {
 struct Snapshot {
         Meta meta;
 
-        SnapshotState state;
+        SnapshotState state, deserialized_state;
 
         bool cleanup;
 };
@@ -46,4 +46,7 @@ extern const UnitVTable snapshot_vtable;
 int snapshot_create(Manager *m, const char *name, bool cleanup, Snapshot **s);
 void snapshot_remove(Snapshot *s);
 
+const char* snapshot_state_to_string(SnapshotState i);
+SnapshotState snapshot_state_from_string(const char *s);
+
 #endif