cyclegraph: support rolling back changes
[model-checker.git] / snapshot-interface.h
index 9a2b9cc18e3b3eaaa4e18434078126d2dbb1ccf6..9912a1b78f2beba07c08b624b483c71492fd9e3a 100644 (file)
@@ -1,10 +1,18 @@
+/** @file snapshot-interface.h
+ *  @brief C++ layer on top of snapshotting system.
+ */
+
+
 #ifndef __SNAPINTERFACE_H
 #define __SNAPINTERFACE_H
-#include "snapshot.h"
 #include "mymemory.h"
-#include "snapshot.h"
 
-void SnapshotGlobalSegments();
+typedef unsigned int snapshot_id;
+
+typedef void (*VoidFuncPtr)();
+void initSnapShotLibrary(unsigned int numbackingpages,
+               unsigned int numsnapshots, unsigned int nummemoryregions,
+               unsigned int numheappages, VoidFuncPtr entryPoint);
 
 struct stackEntry {
   struct stackEntry *next;
@@ -20,7 +28,7 @@ class SnapshotStack {
   int backTrackBeforeStep(int seq_index);
   void snapshotStep(int seq_index);
 
- private: 
+ private:
   struct stackEntry * stack;
 };