706fc0549f96c0bd4a1854e87966d117f4eddfe8
[rocksndiamonds.git] / src / libgame / snapshot.h
1 /***********************************************************
2 * Artsoft Retro-Game Library                               *
3 *----------------------------------------------------------*
4 * (c) 1995-2006 Artsoft Entertainment                      *
5 *               Holger Schemel                             *
6 *               Detmolder Strasse 189                      *
7 *               33604 Bielefeld                            *
8 *               Germany                                    *
9 *               e-mail: info@artsoft.org                   *
10 *----------------------------------------------------------*
11 * snapshot.h                                               *
12 ***********************************************************/
13
14 #ifndef SNAPSHOT_H
15 #define SNAPSHOT_H
16
17 #include "system.h"
18 #include "misc.h"
19
20
21 /* needed for comfortably saving engine snapshot buffers */
22 #define ARGS_ADDRESS_AND_SIZEOF(x)              (&(x)), (sizeof(x))
23
24 struct EngineSnapshotNodeInfo
25 {
26   void *buffer_orig;
27   void *buffer_copy;
28   int size;
29 };
30
31
32 void SaveEngineSnapshotBuffer(void *buffer, int size);
33 void LoadEngineSnapshotBuffers();
34 void FreeEngineSnapshotBuffers();
35
36 #endif  /* SNAPSHOT_H */