-
Notifications
You must be signed in to change notification settings - Fork 0
/
state.h
31 lines (25 loc) · 1.08 KB
/
state.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//---------------------------------------------------------------------------
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version. See also the license.txt file for
// additional informations.
//---------------------------------------------------------------------------
// state.h: state saving
//
// 01/20/2009 Cleaned up interface, added loading from memory (A.K.)
// Moved struct definitions to .cpp
// 09/11/2008 Initial version (Akop Karapetyan)
//
//////////////////////////////////////////////////////////////////////
#ifndef _STATE_H
#define _STATE_H
int state_get_size();
int state_store_mem(void *state);
int state_restore_mem(void *state);
int state_store(char* filename);
int state_restore(char* filename);
int state_store(FILE *stream);
int state_restore(FILE *stream);
//=============================================================================
#endif // _STATE_H