chiark / gitweb /
first attempt in implementinging execution logic
[elogind.git] / snapshot.h
diff --git a/snapshot.h b/snapshot.h
new file mode 100644 (file)
index 0000000..8d35e17
--- /dev/null
@@ -0,0 +1,24 @@
+/*-*- Mode: C; c-basic-offset: 8 -*-*/
+
+#ifndef foosnapshothfoo
+#define foosnapshothfoo
+
+typedef struct Snapshot Snapshot;
+
+#include "name.h"
+
+typedef enum SnapshotState {
+        SNAPSHOT_DEAD,
+        SNAPSHOT_ACTIVE
+} SnapshotState;
+
+struct Snapshot {
+        Meta meta;
+
+        SnapshotState state;
+        bool cleanup:1;
+};
+
+extern const NameVTable snapshot_vtable;
+
+#endif