X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=snapshot-interface.h;h=c0db0d0c0990595beaea3f1af70933a0f97779a8;hp=9a2b9cc18e3b3eaaa4e18434078126d2dbb1ccf6;hb=02e807a227da687ff2606d6eecf49aff372d3a51;hpb=c05d5f98fc181668da38588cda493c349ea58ae7 diff --git a/snapshot-interface.h b/snapshot-interface.h index 9a2b9cc1..c0db0d0c 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; };