ScummVM API documentation
lua_persistence.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
26/* Tamed Pluto - Heavy-duty persistence for Lua
27 * Copyright (C) 2004 by Ben Sunshine-Hill, and released into the public
28 * domain. People making use of this software as part of an application
29 * are politely requested to email the author at sneftel@gmail.com
30 * with a brief description of the application, primarily to satisfy his
31 * curiosity.
32 *
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
35 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
36 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
37 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
38 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
39 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
40 *
41 * Instrumented by Stefan Reich (info@luaos.net)
42 * for Mobile Lua (http://luaos.net/pages/mobile-lua.php)
43 */
44
45#ifndef LUA_PERSISTENCE_H
46#define LUA_PERSISTENCE_H
47
48#include "lua.h"
49
50
51namespace Common {
52class WriteStream;
53class ReadStream;
54}
55
56
57namespace Lua {
58
59#define PERMANENT_TYPE 101
60
61void persistLua(lua_State *luaState, Common::WriteStream *writeStream);
62void unpersistLua(lua_State *luaState, Common::ReadStream *readStream);
63
64} // End of namespace Lua
65
66#endif
Definition: stream.h:385
Definition: stream.h:77
Definition: algorithm.h:29
Definition: lstate.h:100