X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=snapshot.h;h=959a5090ecf318d0242191cf954b61788d55a660;hb=a16e112358ea8fea381ee106b89e645aed8b0a8c;hp=78bcafa448c24075edb3e622f8b4c8419f49baf2;hpb=0d9068141e07ba29483ebe8bc4aaed6aacde1562;p=elogind.git diff --git a/snapshot.h b/snapshot.h index 78bcafa44..959a5090e 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