setup main wrapper and then call into norris code
[c11tester.git] / snapshot.h
1 #ifndef _SNAPSHOT_H
2 #define _SNAPSHOT_H
3 #define PAGESIZE 4096
4 #define USE_CHECKPOINTING 1
5
6 typedef unsigned int snapshot_id;
7 typedef void (*MyFuncPtr)();
8 void initSnapShotLibrary(unsigned int numbackingpages, unsigned int numsnapshots, unsigned int nummemoryregions, MyFuncPtr entryPoint);
9
10 void addMemoryRegionToSnapShot( void * ptr, unsigned int numPages );
11
12 snapshot_id takeSnapshot( );
13
14 void rollBack( snapshot_id theSnapShot );
15
16 void finalize();
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 void createSharedLibrary();
22 #ifdef __cplusplus
23 };  /* end of extern "C" */
24 #endif
25 #endif