diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-18 03:07:42 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-18 03:07:42 +0200 |
commit | 41447faf1fc57463becabce399d983df762a104c (patch) | |
tree | fe449b8a472b12b2005280ed5552d7f53d19524b /snapshot.h | |
parent | 6dde1f33e1249a8a6b354372dd95065f26b8c712 (diff) |
snapshot: implement snapshot unit logic
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 |