X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=snapshot-interface.h;h=c0db0d0c0990595beaea3f1af70933a0f97779a8;hb=7f9eb951a3ee0443169dd21ddc914df4a04c9aab;hp=9a2b9cc18e3b3eaaa4e18434078126d2dbb1ccf6;hpb=c05d5f98fc181668da38588cda493c349ea58ae7;p=model-checker.git diff --git a/snapshot-interface.h b/snapshot-interface.h index 9a2b9cc..c0db0d0 100644 --- a/snapshot-interface.h +++ b/snapshot-interface.h @@ -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; };