X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=snapshot.h;h=959a5090ecf318d0242191cf954b61788d55a660;hp=78bcafa448c24075edb3e622f8b4c8419f49baf2;hb=41160f3dbf0cb61e23a02338da1f289a2ff00066;hpb=41447faf1fc57463becabce399d983df762a104c 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