X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=snapshot-interface.h;h=c0db0d0c0990595beaea3f1af70933a0f97779a8;hb=5d87d23f622d396fd2e1c94d61f901429c5f35ac;hp=e9746e1ebb35468ff20e0ea68fd9ee364a0e7cd6;hpb=ca4375ba4697b8abe476e03f211523c491c3e2c3;p=model-checker.git diff --git a/snapshot-interface.h b/snapshot-interface.h index e9746e1..c0db0d0 100644 --- a/snapshot-interface.h +++ b/snapshot-interface.h @@ -1,3 +1,8 @@ +/** @file snapshot-interface.h + * @brief C++ layer on top of snapshotting system. + */ + + #ifndef __SNAPINTERFACE_H #define __SNAPINTERFACE_H #include "mymemory.h" @@ -5,12 +10,10 @@ typedef unsigned int snapshot_id; typedef void (*VoidFuncPtr)(); -void initSnapShotLibrary(unsigned int numbackingpages, +void initSnapshotLibrary(unsigned int numbackingpages, unsigned int numsnapshots, unsigned int nummemoryregions, unsigned int numheappages, VoidFuncPtr entryPoint); -void SnapshotGlobalSegments(); - struct stackEntry { struct stackEntry *next; snapshot_id snapshotid; @@ -25,7 +28,7 @@ class SnapshotStack { int backTrackBeforeStep(int seq_index); void snapshotStep(int seq_index); - private: + private: struct stackEntry * stack; };