summaryrefslogtreecommitdiff
path: root/snapshot.h
diff options
context:
space:
mode:
Diffstat (limited to 'snapshot.h')
-rw-r--r--snapshot.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/snapshot.h b/snapshot.h
index 78bcafa448..959a5090ec 100644
--- a/snapshot.h
+++ b/snapshot.h
@@ -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