2010-01-23 01:52:57 +01:00
|
|
|
/*-*- Mode: C; c-basic-offset: 8 -*-*/
|
|
|
|
|
|
|
|
#ifndef foosnapshothfoo
|
|
|
|
#define foosnapshothfoo
|
|
|
|
|
|
|
|
typedef struct Snapshot Snapshot;
|
|
|
|
|
2010-01-26 21:39:06 +01:00
|
|
|
#include "unit.h"
|
2010-01-23 01:52:57 +01:00
|
|
|
|
|
|
|
typedef enum SnapshotState {
|
|
|
|
SNAPSHOT_DEAD,
|
|
|
|
SNAPSHOT_ACTIVE
|
|
|
|
} SnapshotState;
|
|
|
|
|
|
|
|
struct Snapshot {
|
|
|
|
Meta meta;
|
|
|
|
|
|
|
|
SnapshotState state;
|
|
|
|
bool cleanup:1;
|
|
|
|
};
|
|
|
|
|
2010-01-26 21:39:06 +01:00
|
|
|
extern const UnitVTable snapshot_vtable;
|
2010-01-23 01:52:57 +01:00
|
|
|
|
|
|
|
#endif
|