1 /*****************************************************************************
2 ** $Source: /cygdrive/d/Private/_SVNROOT/bluemsx/blueMSX/Src/Utils/SaveState.h,v $
3 **
4 ** $Revision: 1.7 $
5 **
6 ** $Date: 2009-07-18 14:10:27 $
7 **
8 ** More info: http://www.bluemsx.com
9 **
10 ** Copyright (C) 2003-2006 Daniel Vik
11 **
12 ** This program is free software; you can redistribute it and/or modify
13 ** it under the terms of the GNU General Public License as published by
14 ** the Free Software Foundation; either version 2 of the License, or
15 ** (at your option) any later version.
16 **
17 ** This program is distributed in the hope that it will be useful,
18 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 ** GNU General Public License for more details.
21 **
22 ** You should have received a copy of the GNU General Public License
23 ** along with this program; if not, write to the Free Software
24 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 **
26 ******************************************************************************
27 */
28 #ifndef SAVE_STATE_H
29 #define SAVE_STATE_H
30 
31 #include "MsxTypes.h"
32 
33 typedef struct SaveState SaveState;
34 
35 void saveStateCreateForRead(const char* fileName);
36 void saveStateCreateForWrite(const char* fileName);
37 void saveStateDestroy(void);
38 
39 SaveState* saveStateOpenForRead(const char* fileName);
40 SaveState* saveStateOpenForWrite(const char* fileName);
41 void saveStateClose(SaveState* state);
42 
43 UInt32 saveStateGet(SaveState* state, const char* tagName, UInt32 defValue);
44 void saveStateSet(SaveState* state, const char* tagName, UInt32 value);
45 
46 void saveStateGetBuffer(SaveState* state, const char* tagName, void* buffer, UInt32 length);
47 void saveStateSetBuffer(SaveState* state, const char* tagName, void* buffer, UInt32 length);
48 
49 #endif /* SAVE_STATE_H */
50 
51