diff options
Diffstat (limited to 'snapshot.h')
-rw-r--r-- | snapshot.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/snapshot.h b/snapshot.h index cde5a13857..78bcafa448 100644 --- a/snapshot.h +++ b/snapshot.h @@ -28,16 +28,22 @@ typedef struct Snapshot Snapshot; typedef enum SnapshotState { SNAPSHOT_DEAD, - SNAPSHOT_ACTIVE + SNAPSHOT_ACTIVE, + _SNAPSHOT_STATE_MAX, + _SNAPSHOT_STATE_INVALID = -1 } SnapshotState; struct Snapshot { Meta meta; SnapshotState state; - bool cleanup:1; + + bool cleanup; }; extern const UnitVTable snapshot_vtable; +int snapshot_create(Manager *m, const char *name, bool cleanup, Snapshot **s); +void snapshot_remove(Snapshot *s); + #endif |